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

Answer : C

Explanation

The parent process id of a child process.

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 - Which command can be used to delete a file?

A - del

B - remove

C - rm

D - delete

Answer : C

Explanation

rm, can delete a file as well as a directory.

Q 4 - Which option can be used with rm command to prompt for file removal?

A - ask

B - i

C - -c

D - -n

Answer : B

Explanation

By default rm is non interactive. i means as interactive.

Q 5 - General purpose UNIX command are found typically in the following directory.

A - /dev

B - /sbin

C - /bin and /usr/bin

D - /tmp

Answer : C

Explanation

Answer : D

Explanation

User/owner of the is reffered with o. r means read permission bit.

Q 7 - Command to display in the format dd/mm/yy

A - date '+%d/%m/%Y'

B - date '+%d/%m/%y'

C - date '+%m/%d/%y'

D - date '+INDIA'

Answer : B

Explanation

Q 8 - What are the options used to list the contents of a .tar file?

A - cvf

B - tvf

C - xvf

D - lvf

Answer : B

Explanation

t to list out, v is verbose mode & f for target file.

Answer : C

Explanation

Oracle Corporation took over Sun microsystems

Q 10 - Choose the example for character special file.

A - Floppy disk

B - Mouse

C - Memory

D - Flash drive

Answer : B

Explanation

unix_questions_answers.htm
Advertisements