wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Linux/Unix Command List

Total questions: 14

Worksheet time: 7mins

Name
Class
Date
1.

Which command is used to display the current working directory?

a)

pwd

b)

cd

c)

ls

d)

echo

2.

Which command is used to list files and directories?

a)

ls

b)

cd

c)

rm

d)

mkdir

3.

Which command lists all files with permissions, ownership, and metadata?

a)

ls -la

b)

ls -lS

c)

ls -lh

d)

ls -lt

4.

Which command is used to change the current directory?

a)

cd

b)

ls

c)

pwd

d)

mkdir

5.

Which command is used to move up one directory level?

a)

cd ..

b)

cd /

c)

cd ~

d)

cd .

6.

Which command is used to create a new directory?

a)

mkdir

b)

rmdir

c)

cd

d)

ls

7.

Which command is used to delete an empty directory?

a)

rmdir

b)

del

c)

remove

d)

erase

8.

Which command is used to remove a file?

a)

rm

b)

cp

c)

mv

d)

cat

9.

Which command is used to force delete directories and their contents?

a)

rm -rf

b)

rm -r

c)

del /f

d)

rmdir

10.

Which command is used to copy files from one location to another?

a)

cp

b)

mv

c)

rm

d)

ls

11.

Which command is used to copy directories recursively?

a)

cp -r

b)

mv -r

c)

copydir

d)

cpdir

12.

Which command is used to move or rename files and directories?

a)

mv

b)

cp

c)

rm

d)

ls

13.

Which command is used to create an empty file or update timestamps?

a)

touch

b)

mkdir

c)

rm

d)

cat

14.

Which command is used to view detailed file metadata?

a)

stat

b)

ls

c)

cat

d)

touch