Search Header Logo

Linux Command Line Quiz

Authored by Zanoxolo Kale

Information Technology (IT)

University

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

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following commands is used to show the contents of a text file?

Is -I

view

display

open

cat

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command reveals all files in a directory, including hidden ones?

Is

Is -a

Is -h

Is-I

dir-h

3.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

What command would you use to create a new user on a Linux system?

adduser username

createuser username

mkuser username

useradd username

newuser username

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What type of data is typically stored in the /var directory?

Stores user home directories

Holds system configuration files

Stores executable system commands

Contains system logs and variable data

Contains bootloader files

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command is used to identify the largest files in a directory?

du -ah | sort-rh | head -n 10

find. -size +100M

all of the above

none of the above

Is -IhS | head -n 10

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can a script be run in the background?

./script.sh &

nohup script.sh

screen script.sh

all of the above

none of the above

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command will print the absolute path of your current directory?

where

dirname

which

pwd

Is -I

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?