Introductory Command Line And Bash Scripting

Introductory Command Line And Bash Scripting

KG - University

20 Qs

quiz-placeholder

Similar activities

SLG ULI101 Week 11 - Bash Scripting

SLG ULI101 Week 11 - Bash Scripting

KG

15 Qs

CSE493_QUIZ 1

CSE493_QUIZ 1

University

20 Qs

Standard Linux Commands

Standard Linux Commands

1st - 10th Grade

20 Qs

Linux User Management

Linux User Management

10th Grade - University

20 Qs

Files & File Systems

Files & File Systems

9th - 12th Grade

24 Qs

Introduction to Linux

Introduction to Linux

Professional Development

15 Qs

Linux-1 Week 4

Linux-1 Week 4

1st - 3rd Grade

15 Qs

linux commands

linux commands

University

20 Qs

Introductory Command Line And Bash Scripting

Introductory Command Line And Bash Scripting

Assessment

Quiz

Computers

KG - University

Hard

Used 10+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

You have made changes to .bashrc, how do you initiate the changes in the current shell?

run ~/.bashrc

source ~/.bashrc

exec ~/.bashrc

./bashrc

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

You are currently in your home directory, display the files and directories located in the etc directory by date modified where you can see the date

ls /etc -t

ls -ltr

ls -lt /etc

ls -ltr ~/etc

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

You are using in a GUI for Ububtu desktop, how do you open a terminal?

Ctrl-Alt-t

Ctrl-Shift-b

Ctrl-Alt-b

Ctrl-Shift-t

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What command creates an empty file?

mk

cat

create

touch

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which one of the following would be best (will return the fewest results) at returning unique results from a file named colors.txt containing the following with each word on it's own line and writing the results to a file called sorted:

green,Green,Blue,Red,Yellow,Purple,red,Purple,green

sort colors.txt | uniq -i | sorted

sort colors.txt | uniq -i > sorted

uniq -i colors.txt >> sorted

sort uniq colors.txt = sorted

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How would you delete a non empty directory named Data located in the directory you are in?

rm Data

rmdir Data

rm -r Data

rm -r ../Data

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Add the line "Ryan" to the file enemies without removing any other data without using a text editor

echo "Ryan" >> enemies

echo "Ryan" > enemies

echo "Ryan" < enemies

cp "Ryan" enemies

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?