Unix / Linux Online Quiz



Following quiz provides Multiple Choice Questions (MCQs) related to Unix Framework. You will have to read all the given answers and click over the correct answer. If you are not sure about the answer then you can check the answer using Show Answer button. You can use Next Quiz button to check new set of questions in the quiz.

Questions and Answers

Q 1 - What is the option to create hard link for a directory?

A - –s

B - –l

C - –f

D - None of the above.

Answer : D

Explanation

It is error to create a hard link for a directory.

Q 2 - Which filter can be applied on lines of text for arranging in ascending or descending order?

A - sort

B - arrange

C - collate

D - None of the above.

Answer : A

Explanation

Sort command, a filter used to sort the text in Lexi logical or numerical order.

Q 3 - Choose the odd one out.

A - write

B - mail

C - wall

D - read

Answer : D

Explanation

The rest are communication commands.

Q 4 - Choose option to list files by modification time.

A - ls –mt

B - ls –t

C - ls –a

D - ls –l

Answer : B

Explanation

–t is to sort by modification time.

Q 5 - Which option can be used with ‘chmod’ to apply permission bits recursively on all the files.

A - –r

B - -R

C - –l

D - -f

Answer : B

Explanation

Q 6 - Which command in command mode of vi saves the file without quitting?

A - :wq

B - :q!

C - :x

D - :w

Answer : D

Explanation

where ‘w’ means as write or say save.

Q 7 - Which command can give first found difference between two file after comparing?

A - diff

B - cmp

C - Common

D - None of the above.

Answer : B

Explanation

cmp command is used in general to find for equal files.

Q 8 - Command used to change group owner of the file __

A - chgrp

B - cgrp

C - group

D - newgroup

Answer : A

Explanation

Answer : C

Explanation

Q 10 - Choose the example for block special file

A - DVD-ROM

B - Serial modem

C - Console terminal

D - Virtual terminal

Answer : A

Explanation

unix_questions_answers.htm
Advertisements