Search Header Logo

Linux Commands Quiz

Authored by R. Dharan

Other

University

Used 8+ times

Linux Commands Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command is used to display the current directory in Linux?

ls

pwd

cd

mkdir

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which file stores the user passwords in Linux?

/etc/passwd

/etc/shadow

/etc/group

/etc/hosts

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command is used to list the files and directories in Linux?

mv

ls

cp

rm

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command is used to change file permissions in Linux?

chmod

chown

chgrp

chattr

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the default shell in most Linux distributions?

C shell (csh)

Bourne shell (sh)

Korn shell (ksh)

Bourne Again Shell (bash)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a package manager for Debian-based systems?

yum

rpm

apt

pacman

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the ‘grep’ command do in Linux?

Search for patterns within files

Remove files

Display file content

Compress files

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?