Search Header Logo

Linux Command Line Quiz

Authored by Akhilash K

Computers

1st Grade

Used 1+ times

Linux Command Line Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the pwd command?

To print the working directory

To change the directory

To list the contents of a directory

To show the last executed command

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command shows the current logged-in user?

who

whoami

pwd

ls

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does ls -l display?

Only the names of files and directories

Detailed information about files, including permissions

The size of all files in bytes

Recently modified files

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens when you run cat /etc/passwd?

It deletes user accounts

It displays system users

It lists all system groups

It modifies user passwords

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you view the first 5 lines of the /etc/passwd file?

head /etc/passwd

tail -n5 /etc/passwd

head -n5 /etc/passwd

wc -l /etc/passwd

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does wc -l /etc/passwd output?

The total number of words

The total number of lines

The total number of bytes

The total number of characters

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command displays a file one page at a time?

cat

less

wc

head

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

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?