Unix / Linux Online Quiz


Advertisements

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 - What is the option to create symbolic link for a file?

A - –s

B - –l

C - –f

D - None of the above.

Answer : A

Explanation

-s is the option to create a symbolic/soft link and applicable for only files.

Q 2 - Which key combination can yank a line in vi?

A - yw

B - yc

C - yy

D - yl

Answer : C

Explanation

Yanking is the process of holding a text in the buffer.

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 - Choose the correct usage of ‘cd’ to move into parent directory.

A - cd

B - cd..

C - cd/

D - None of the above

Answer : D

Explanation

cd ..(space between cd and ..) is correct instead of cd..

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 - Which command can be used to find resource limits?

A - rlimit

B - ulimit

C - mylimit

D - getlimit

Answer : B

Explanation

Q 8 - Which command is used to change default permissions for files & directories at the time of creation?

A - chmod

B - chown

C - useradd

D - umask

Answer : D

Explanation

umask sets the mask value for files & directories at the time of creation.

Q 9 - Which of the following command can give documentation of a command?

A - man

B - doc

C - info

D - synopsis

Answer : A

Explanation

Q 10 - What is the PID of the process ‘init’

A - S

B - 1

C - 0

D - 8

Answer : B

Explanation

unix_questions_answers.htm
Advertisements