wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Linux Command Quiz

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

Which command is used to list all files and directories in the current directory?

a)

list

b)

ls

c)

dir

d)

show

2.

What command is used to change the current directory?

a)

cd

b)

chdir

c)

changedir

d)

move

3.

Which command is used to display the contents of a file?

a)

cat

b)

show

c)

list

d)

display

4.

What command is used to remove a file in Linux?

a)

delete

b)

rm

c)

erase

d)

del

5.

Which command shows the current working directory?

a)

pwd

b)

dir

c)

home

d)

where

6.

To create an empty file, which command is used?

a)

touch

b)

mkfile

c)

create

d)

newfile

7.

How do you display the first 10 lines of a file?

a)

head

b)

top

c)

start

d)

showhead

8.

What is the command to display running processes?

a)

proc

b)

ps

c)

listproc

d)

runlist

9.

What command is used to copy a file in Linux?

a)

cp

b)

copy

c)

mv

d)

dup

10.

Which command is used to move or rename a file?

a)

rm

b)

mv

c)

cp

d)

movefile