Search Header Logo

Linux Quiz

Authored by Mohammed Abdul Akheel

Professional Development

Professional Development

Used 11+ times

Linux Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the whole command to show long formatted list of the files in directory?

ls -l

ls -ltu

ls -ltr

ls -ltc

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

I want to pass color argument. What I need to use?

--

-

ls -color

ls --color

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

I want to create 100 directories named hello001 to hello100. What is the command?

mkdir hello(001..100)

mkdir hello{001..100}

mkdirhello[001..100]

mkdir hello(1..100)

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which example represents the situation, when Command2 operates on output from Command1?

Command2 | Command1

Command1 || Command2

Command1 | Command2

Command1 | Command3 | Command2

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

I have a file where each line contains one word. I want to know how many unique words I have in file. What command will do the job?

cat file | sort | wc -l

cat file | sort | wc -l | uniq

cat file | uniq | sort | wc -l

cat file | sort | uniq | wc -l

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

the wc -l < numbers.txt command will

count letters in the filename of the file

count number of lines in numbers.txt file

write count into numbers.txt file

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

752 represents

rwx-rx-w-

rwx-wx-w-

rwx-rw-w-

rwx-rwr--

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?