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

Dot dot (..) represents parent directory and Dot (.) represents current working directory.

Q 2 - Which key combination can yank a line in vi?

A - yw

B - yc

C - yy

D - yl

Answer : C

Explanation

Yanking is the process of holding a text in the buffer.

Q 3 - Choose the correct from below to search for lines beginning with the pattern using grep.

A - ^pattern

B - pattern^

C - $pattern

D - pattern$

Answer : A

Explanation

The pattern can be enclosed in single quotes to suppress meaning of all the meta-characters special meanings.

Q 4 - Which command can be used to drop a message to all logged in users.

A - mail

B - writeall

C - boradcast

D - wall

Answer : D

Explanation

wall is considered as broadcasting command. Typically used by admins to pass on important info to all logged in users.

Q 5 - Which character is used to search a pattern in the forward direction in vi editor?

A - //

B - :/

C - ?

D - /

Answer : D

Explanation

Q 6 - Which command can be used to restrict the messages to be written onto you terminal using write command?

A - mesg

B - stop

C - dodge

D - halt

Answer : A

Explanation

You can turn off messages by executing the command mesg with n as argument.

Answer : C

Explanation

more holds the scrolling page wise. Hit space bar to continue reading to next page. Hit q to quit from more.

Q 8 - Which command is used to change default permissions for files & directories at the time of creation?

A - chmod

B - chown

C - useradd

D - umask

Answer : D

Explanation

umask sets the mask value for files & directories at the time of creation.

Q 9 - Mount point for templorary removable devices is ___

A - /

B - /mnt

C - /dev

D - /tmp

Answer : B

Explanation

Q 10 - Creating a soft link for file increases files link count.

A - True

B - False

Answer : B

Explanation

Link count gets increased by creating only hard links.

unix_questions_answers.htm
Advertisements