wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Unit 2a & b

Total questions: 23

Worksheet time: 1hrs 11mins

Name
Class
Date
1.

A directory file is a_________

a)

the directory that contains data

b)

the directory that contains data and files

c)

the directory that contains files

d)

the directory that contains the details of files and subdirectories of it

2.

In the UNIX the filename isn’t case-sensitive.

a)

True

b)

False

c)

None of these

3.

Filenames starting with a –, we do avoid.

a)

True

b)

False

4.

What is the most common file type?

a)

device file

b)

directory file

c)

ordinary file

d)

ordinary file and directory file

5.

To operate the device the kernel uses the device files.

a)

True

b)

False

6.

What is the directory called when we log in, the UNIX places us in?

a)

parent

b)

main

c)

home

d)

current

7.

Everything is treated as a file by UNIX.

a)

True

b)

False

8.

What represents the root directory?

a)

\

b)

$

c)

/

d)

*

9.

To frame filename extensions no role is applied by Unix.

a)

True

b)

False

10.

Which command is used to display the documentation of commands in Unix?

a)

man

b)

whatis

c)

help

d)

search

11.

Which Unix command is used for changing the current directory?

a)

pwd

b)

cd

c)

rm

d)

cp

12.

Which command is used for printing the current working directory?

a)

pwd

b)

cd

c)

mv

d)

Home

13.

Which command is used for listing files in a directory?

a)

list

b)

wc

c)

ls

d)

ps

14.

Which command is used by the user to change their login password in Unix?

a)

cp

b)

man

c)

reset

d)

passwd

15.

Which commands are used for displaying the contents of a file in Unix?

a)

mkdir

b)

cat

c)

rm

d)

more

16.

Which command is used to delete all files in a directory?

a)

del *

b)

rm *

c)

mv *

d)

rmdir *

17.

echo command is used for _________

a)

displaying diagnostic /messages

b)

displaying date and time

c)

displaying errors

d)

displaying operating system details

18.

What is the function of cp command in Unix?

a)

delete a given file

b)

change the directory

c)

list all the available files in the current directory

d)

cp is a command used for copying files and directories

19.

Which command is used for removing/deleting files in Unix?

a)

rm

b)

mv

c)

rmdir

d)

del

20.

Which command is used for renaming files in Unix?

a)

rename

b)

move

c)

mv

d)

cp

21.

Which of the following are relative pathname ?

a)

/home/A20232020

b)

~/

c)

/home/../../lab2b

d)

none of the above

22.

Select the absolute pathnames ?

a)

/home/username/

b)

My_Stuff/Music

c)

../../lib/dir4

d)

/home/username/lab2b/My_Stuff

23.

Select the correct command to create the directory structure shown in picture.

a)

mkdir –p tmpdir/{branches,tags,trunk/sources/{includes,docs}}

b)

mkdir tmpdir/{branches/{ICT,Buss},tags,trunk/sources/{includes,docs}}

c)

mkdir -p tmpdir/{branches/{ICT,Buss},tags,trunk/sources/{includes,docs}}

d)

All of the above