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 - How does a comment can begin in a shell script file.

A - Beginning with #

B - Beginning with $

C - Beginning with !

D - None of the above.

Answer : A

Explanation

A comment line begin with # (pound symbol) and is ignored by the shell.

Q 3 - Which is following key moves the cursor to the end of the line in vi editor?

A - 0

B - $

C - {

D - }

Answer : B

Explanation

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 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 - Choose the command which can display only your information.

A - who

B - who am i

C - whoisme

D - None of the above.

Answer : B

Explanation

Q 7 - How can you execute date command staying within vi editor?

A - !date

B - :!date

C - :>date

D - Noe of the above

Answer : B

Explanation

Staying in command mode of vi, hit : and any command following exclamation (!).

Q 8 - Which command is used to get intermediate result in a pipeline of commands?

A - tee

B - tea

C - get

D - filter

Answer : A

Explanation

Q 9 - Which of the following command can give documentation of a command?

A - man

B - doc

C - info

D - synopsis

Answer : A

Explanation

Q 10 - Job number and PID are same.

A - True

B - False

Answer : B

Explanation

PID is given by OS, whereas Job number is the utility program which initiates process.

unix_questions_answers.htm
Advertisements