wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Ubuntu/Linux Commands Quiz

Total questions: 30

Worksheet time: 15mins

Name
Class
Date
1.

Which command is used to display the current working directory?

a)

pwd

b)

cwd

c)

dir

d)

workdir

2.

Which command lists all files, including hidden ones?

a)

ls -a

b)

list all

c)

dir /all

d)

showfiles

3.

Which command creates a new directory in Linux?

a)

makedir

b)

mkdir

c)

newdir

d)

createdir

4.

Which command is used to remove an empty directory?

a)

rm

b)

rmdir

c)

removedir

d)

delete

5.

Which command is used to create an empty file?

a)

make

b)

newfile

c)

touch

d)

create

6.

Which command shows the manual page for a command?

a)

help

b)

man

c)

info

d)

doc

7.

Which command is used to copy files in Linux?

a)

copy

b)

cp

c)

move

d)

cpy

8.

Which command moves or renames files?

a)

mv

b)

move

c)

rename

d)

shift

9.

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

a)

show

b)

cat

c)

read

d)

display

10.

Which command clears the terminal screen?

a)

cls

b)

clear

c)

reset

d)

empty

11.

Which command shows the current logged-in user?

a)

whoami

b)

who

c)

me

d)

user

12.

Which command shows disk usage in human-readable format?

a)

df -h

b)

disk -h

c)

du -h

d)

free -m

13.

Which command is used to edit files in a terminal text editor?

a)

nano

b)

edit

c)

writer

d)

gedit

14.

Which command shows running processes?

a)

ps

b)

proc

c)

listproc

d)

tasks

15.

Which command is used to search for a keyword inside files?

a)

find

b)

grep

c)

search

d)

look

16.

Which command is used to change file permissions?

a)

perm

b)

chmod

c)

setperm

d)

access

17.

Which command is used to change the file owner?

a)

own

b)

chown

c)

setowner

d)

owner

18.

Which command is used to check system uptime?

a)

uptime

b)

sysup

c)

time

d)

status

19.

Which command compresses files into a .tar.gz archive?

a)

zip

b)

gzip

c)

tar -czf

d)

pack

20.

Which command extracts files from a .tar.gz archive?

a)

unzip

b)

tar -xzf

c)

extract

d)

unpack

21.

Which command is used to shut down the system immediately?

a)

halt

b)

shutdown now

c)

poweroff

d)

All of the above

22.

Which command is used to check the IP address of the system?

a)

ip addr

b)

ifconfig

c)

netstat -i

d)

All of the above

23.

Which command shows the top running processes?

a)

top

b)

htop

c)

procs

d)

tasks

24.

Which command is used to schedule tasks in Linux?

a)

cron

b)

crontab

c)

schedule

d)

taskset

25.

Which command is used to switch to another user account?

a)

switch

b)

su

c)

login

d)

change

26.

Which command changes the user password?

a)

passwd

b)

password

c)

setpass

d)

changepw

27.

Which command is used to print the first 10 lines of a file?

a)

head

b)

first

c)

toplines

d)

start

28.

Which command is used to print the last 10 lines of a file?

a)

tail

b)

last

c)

bottomlines

d)

end

29.

Which command is used to find a file by name?

a)

locate

b)

search

c)

find

d)

Both a and c

30.

Which command displays the system date and time?

a)

time

b)

date

c)

now

d)

clock