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 : D

Explanation

A program in the execution state is called as process.

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 - 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 - 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 - Which command can be used to query for terminal type being in use?

A - ps

B - ls

C - whoami

D - tty

Answer : D

Explanation

tty − Terminal type.

Q 6 - Which character can be used to delete a character at the cursor position in vi?

A - a

B - b

C - x

D - y

Answer : C

Explanation

In the command mode of vi editor ‘x’ removes the character at cursor position.

Q 7 - Which command can be used to find resource limits?

A - rlimit

B - ulimit

C - mylimit

D - getlimit

Answer : B

Explanation

Q 8 - Which switch of rm command is used to remove a directory with all its subdirectories forcibly?

A - rm –rfi

B - rm –ri

C - rm –rf

D - rm –r

Answer : C

Explanation

–r mean recursively and –f means forcibly.

Q 9 - On a typical UNIX installation kernel resides in the following directory?

A - /home

B - / OR /boot

C - /image

D - None of the above.

Answer : B

Explanation

Mostly in /boot.

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