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 - We can kill any background executing process.

A - True

B - False

Answer : B

Explanation

False. We can kill only the processes for which we are owner.

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 - Option to mention field separator for the command ‘cut’ is __

A - -f

B - -c

C - -d

D - \0

Answer : C

Explanation

–d means as delimiter, acts as field separator.

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

A - profile

B - .profile

C - .mbox

D - .exrc

Answer : B

Explanation

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

Q 6 - Which command can be used to show OS name?

A - lname

B - uname

C - osname

D - config

Answer : B

Explanation

‘uname’ can display much more technical information about your hardware and OS apart from name of the OS.

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 from the following can create a file if doesn’t exist?

A - tee

B - make

C - makefile

D - touch

Answer : D

Explanation

touch can update access and modification time apart from creating an empty file.

Q 9 - Which command can introduce clock delay?

A - sleep

B - wait

C - suspend

D - delay

Answer : A

Explanation

Q 10 - Out of the following which can place in home directory?

A - cd

B - cd ~

C - Both (a) and (b)

D - None.

Answer : C

Explanation

unix_questions_answers.htm
Advertisements