wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Linux - Recitation

Total questions: 15

Worksheet time: 3mins

Name
Class
Date
1.

Lists all files and directories in the present working directory

a)

ls

b)

LS

c)

ls -a

d)

ls -al

2.

Lists files and directories with long listing format

a)

ls

b)

LS

c)

ls -a

d)

ls -al

3.

Change to HOME directory

a)

cd ~

b)

cd \

c)

cd /

d)

cd ..

4.

Moves directory to previous

a)

cd ~

b)

cd \

c)

cd /

d)

cd ..

5.

Moves to the root directory

a)

cd ~

b)

cd \

c)

cd /

d)

cd ..

6.

Creates a new file

a)

cat >> filename

b)

cat > filename

c)

cat < filename

d)

cat filename

7.

Displays the file content

a)

cat >> filename

b)

cat > filename

c)

cat < filename

d)

cat filename

8.

Merge two or more files and stores in a new file

a)

cat >> filename

b)

cat files > filename

c)

cat < filename

d)

cat file1 file2

9.

Deletes a file

a)

rm file

b)

del file

c)

rem file

d)

erase file

10.

Creates a new directory in the present working directory

a)

md name

b)

mkdir name

c)

rmdir name

d)

cd name

11.

Deletes a directory

a)

md name

b)

mkdir name

c)

rmdir name

d)

cd name

12.

Command used to update packages

a)

sudo apt install

b)

sudo apt update

c)

sudo apt install update

d)

sudo apt get

13.

Gives a list of all past commands typed in the current terminal session

a)

History

b)

history

c)

man

d)

MAN

14.

Command to save create text file using cat

a)

ctrl+d

b)

ctrl+s

c)

ctrl+w

d)

ctrl+a

15.

Display the contents of the working directory, subdirectory, and files recursively

a)

TREE

b)

tree

c)

Tree

d)

pwd