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 of the following is correct to create an alias name for 'ls' as 'list'?

A - alias list=ls

B - alias list ls

C - alias list as ls

D - alias ls as list

Answer : A

Explanation

Syntax is alias alias-name=command.

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 - 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 character is used to search a pattern in the forward direction in vi editor?

A - //

B - :/

C - ?

D - /

Answer : D

Explanation

Q 6 - Which command can be used to restrict the messages to be written onto you terminal using write command?

A - mesg

B - stop

C - dodge

D - halt

Answer : A

Explanation

You can turn off messages by executing the command mesg with n as argument.

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 make variables of shell to be made available to sub shell?

A - import

B - export

C - echo

D - set

Answer : B

Explanation

As in the following example

$ var = "tutorialspoint"

$ export var

$ bash -c "echo $var"

Q 9 - Mount point for templorary removable devices is ___

A - /

B - /mnt

C - /dev

D - /tmp

Answer : B

Explanation

Q 10 - Identify the invalid run level from the following.

A - S

B - 1

C - 0

D - 8

Answer : D

Explanation

unix_questions_answers.htm
Advertisements