Introductory Command Line And Bash Scripting

Introductory Command Line And Bash Scripting

KG - University

20 Qs

quiz-placeholder

Similar activities

Springlane Internet Safety Yr 3/4

Springlane Internet Safety Yr 3/4

3rd Grade

20 Qs

Media and Information Literacy Quiz No. 1

Media and Information Literacy Quiz No. 1

12th Grade

20 Qs

Simulasi dan Komunikasi Digital UAS 20-21

Simulasi dan Komunikasi Digital UAS 20-21

10th Grade

20 Qs

Coding Karel 2

Coding Karel 2

KG - University

20 Qs

preguntas de fortnite

preguntas de fortnite

5th Grade

16 Qs

Topic 4.1 Introduction to Java

Topic 4.1 Introduction to Java

12th Grade

20 Qs

Đường lên đỉnh Olympia- Vòng Khởi Động

Đường lên đỉnh Olympia- Vòng Khởi Động

5th - 6th Grade

20 Qs

N+ Chapter 5

N+ Chapter 5

12th Grade

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

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?