Linux Command Line Quiz

Linux Command Line Quiz

1st Grade

20 Qs

quiz-placeholder

Similar activities

Examen final Administración SO

Examen final Administración SO

1st Grade

20 Qs

Тест "Формати файлів"

Тест "Формати файлів"

KG - University

24 Qs

GS 7 5

GS 7 5

1st - 2nd Grade

16 Qs

objective questions

objective questions

1st Grade

25 Qs

Информатика

Информатика

1st - 5th Grade

15 Qs

Quiz cuối khóa học cơ bản

Quiz cuối khóa học cơ bản

1st - 8th Grade

20 Qs

Linux - zarządzanie użytkownikiem

Linux - zarządzanie użytkownikiem

1st Grade

16 Qs

Informatika nələr bilirik

Informatika nələr bilirik

KG - University

20 Qs

Linux Command Line Quiz

Linux Command Line Quiz

Assessment

Quiz

Computers

1st Grade

Easy

Created by

Akhilash K

Used 1+ times

FREE Resource

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

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?