wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Linux Commands

Total questions: 11

Worksheet time: 6mins

Name
Class
Date
1.

What is Your Section ?

a)

1

b)

2

c)

3

d)

4

e)

5

2.

Which of the following commands in Linux is used to display information about files and directories contained within the current working directory?

a)

pwd

b)

ls

c)

cat

d)

ps

3.

Which of the Linux command-line commands listed below

is used for directory traversal?

a)

cd

b)

dir

c)

ps

d)

dig

4.

A Linux command displaying an absolute path to (i.e. full

filename of) the current working directory is called:

a)

mv

b)

pwd

c)

rm

d)

dir

5.

What is the name of a Linux command used for renaming files and directories?

a)

rm

b)

ps

c)

mv

d)

ls

6.

Which of the Linux command-line commands listed below

is used for directory creation?

a)

touch

b)

cd

c)

mkdir

d)

create

7.

Which of the following commands allows for moving one

level up in Linux directory tree?

a)

cd -

b)

cd ..

c)

cd /

d)

cd .

8.

when creating soft link ,if the original file has been removed it won`t be useful any more ?

a)

True

b)

False

9.

what is the Linux command segment used to append data to the "s.txt" file ?

a)

echo "Hey Ubuntu "

b)

echo "Hey Ubuntu " > s.txt

c)

ls >> s.txt

d)

echo "Hello " > s.txt

10.

What is the name of a Linux command used for count the number of lines in a file ?

a)

wc a.txt

b)

count -l a.txt

c)

wc -l a.txt

d)

wc -w a.txt

11.

what is the Linux command used for displaying the content of the file without opening it ?

a)

ls a.txt

b)

show a.txt

c)

cat a.txt

d)

touch a.txt