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 - Choose the odd one out.

A - csh

B - bsh

C - ksh

D - Kernel

Answer : D

Explanation

Kernel is the core part of the OS and is odd one the rest are popular shells.

Q 2 - She-bang line in a shell script begins with__

A - #

B - #!

C - !#

D - None of the above.

Answer : B

Explanation

It tell the system to use which shell for executing the script file.

Q 3 - Choose the option to remove write permission for group & others for a file a.txt.

A - Select disable write for group and others where file=a.txt

B - chmod go-w a.txt

C - chmod w-go a.txt

D - chmod go=r-x a.txt

Answer : B

Explanation

Q 4 - Which mail command can be used to save the mail onto a file?

A - s

B - f

C - d

D - w

Answer : A

Explanation

Q 5 - Per user configuration setting are found in the following file of users home directory.

A - profile

B - .profile

C - .mbox

D - .exrc

Answer : B

Explanation

Aliases, imported environment variables, etc are part of the configuration settings.

Answer : A

Explanation

Q 7 - Switch for ls to view inode number using command ls __

A - -i

B - -n

C - -d

D - -a

Answer : A

Explanation

Q 8 - Which command can be used to display file contents in octal?

A - od

B - octal

C - oshow

D - oct

Answer : A

Explanation

od full form is octal dump.

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