wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

UNIX Commands

Total questions: 10

Worksheet time: 19mins

Name
Class
Date
1.

What is a shell script?

a)

group of commands

b)

a file containing a series of commands

c)

group of functions

d)

a file containing special symbols

2.

Which of the following commands is used to display the directory attributes

a)

cat

b)

ls

c)

mkdir

d)

cp

3.

Which command is used to remove a file?

a)

remove

b)

del

c)

rm

d)

mv

4.

The following command can list out all the current active logins.

a)

A - whoami

b)

B - who am i

c)

C - who

d)

D - None of the above.

5.

In a system, if 5 people are currently using the vi editor. then the number of corresponding processes will be

a)

1

b)

5

c)

2

d)

0

6.

If the command cat x is executed after successfully executing the command time sort filename > x, then

a)

only the time details will be displayed

b)

only the sorted contents of the file filename will be displayed

c)

an error message will be displayed

d)

None of the above

7.

The mv command changes

a)

Only the directory entry

b)

Only the directory entry and i-node

c)

Only the i-node number

d)

None of the above

8.

Unix is a

a)

Single User, Single tasking OS

b)

Single User, Multi-tasking OS

c)

Multi-User, Multi- tasking OS

d)

None

9.

Unix operating system is written in

a)

Ada Language

b)

Perl Language

c)

C Language

d)

Pascal Language

10.

Which command is used to create a file

a)

ls

b)

cat

c)

vi

d)

lyrix