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.

Answer : D

Explanation

We can provide the permission values in octal number system and 888 is not a valid octal number.

Q 3 - Command used to update access and modification times of a file.

A - finger

B - touch

C - tee

D - vi

Answer : B

Explanation

touch can even create an empty file apart from updating access and modification time.

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 - What is the key combination to indicate for most of the UNIX command that input is completed?

A - Ctrl+d

B - Ctrl+c

C - Ctrl+x

D - None of the above.

Answer : A

Explanation

As an example you will be logged out when you ctrl+d at console end, indicating no input for the shell.

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 - Command to display in the format dd/mm/yy

A - date '+%d/%m/%Y'

B - date '+%d/%m/%y'

C - date '+%m/%d/%y'

D - date '+INDIA'

Answer : B

Explanation

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 - Identify the command to remove a directory from directory stack.

A - pushd

B - popd

C - eject

D - enqueue

Answer : B

Explanation

Q 10 - The default number of link count for a newly created file is __

A - 0

B - 1

C - 2

D - 4

Answer : B

Explanation

unix_questions_answers.htm
Advertisements