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 - Which filter can be applied on lines of text for arranging in ascending or descending order?

A - sort

B - arrange

C - collate

D - None of the above.

Answer : A

Explanation

Sort command, a filter used to sort the text in Lexi logical or numerical order.

Q 3 - Copy all the .doc extension files with file name having only 3 characters into the directory called confi, which is in parent directory.

A - cp ???.doc ../confi

B - cp [1-3].doc ../confi

C - cp ???.doc /confi

D - None of the above.

Answer : A

Explanation

??? -> to match for any 3 characters. Dot dot (..) represents parent directory.

Q 4 - Choose option to list files by modification time.

A - ls mt

B - ls t

C - ls a

D - ls l

Answer : B

Explanation

t is to sort by modification time.

Q 5 - Which is the earliest and most widely used shell in UNIX?

A - bash

B - bsh

C - csh

D - ksh

Answer : B

Explanation

bsh − Bourne shell is the very earliest and most widely used.

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 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.

Q 9 - In general the working directory of the user root is __

A - /

B - /root

C - /admin

D - /home/root

Answer : B

Explanation

This path is editable even after installation of the system.

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