Unix Multiple choice Questions & Answers

Posted On:December 31, 2018, Posted By: Latest Interview Questions, Views: 1787, Rating :

Best Unix Objective type Questions and Answers

Dear Readers, Welcome to Unix Objective Questions have been designed specially to get you acquainted with the nature of questions you may encounter during your Job interview for the subject of Unix MCQs. These objective type Unix questions are very important for campus placement test and job interviews. As per my experience good interviewers hardly plan to ask any particular question during your Job interview and these model questions are asked in the online technical test and interview of many IT companies.

1. In Bourne shell, you have to EXPORT the declared environmental variables.

A. True

B. False

Multiple choice Questions on Unix

2. What does "../.." stand for ?

A. Current directory

B. Up one directory

C. Up two directories

D. None of Above


3. What does cd/ mean in UNIX?

A. Current directory

B. Root directory

C. Up one directory

D. None of the above


4. Which variable gives the exit status of the last command executed in the shell?

A. $*

B. $!

C. $?

D. $@


5. How will you assign the value of variable var2 to var1?

A. Var1=var2

B. $var1=$var2

C. Var1=$var2

D. $var1=var2


6. In UNIX, it is possible for more than one file descriptor to point to same file.

A. True

B. False


7. Which of these is true about assign a null value to the variable in bash?

A. A=""

B. A=

C. A=''

D. All of above


8. Command to change owner of the file in UNIX.

A. Chowner

B. Chown

C. Both

D. None


9. How many prompts are available in a UNIX system?

A. One

B. Two

C. Three

D. Zero


10. What is the purpose of the shell?

A. The shell keeps the end users from accessing the kernel for security reasons.

B. The shell protects the kernel from the shortcomings of the user.

C. The shell allows the user to do things that the kernel could not accommodate.

D. All of above


11. What is the command to find the differences in the lines containing "2011" between the files a1.txt and a2.txt

A. Grep 2011 | diff a1.txt a2.txt

B. Diff a1.txt a2.txt

C. Diff a1.txt a2.txt | grep 2011

D. None of above


12. What is the command to display environment variables?






13. Output of the following: $ v= 'ls' $ echo $v

A. List all files

B. Ls

C. Error


14. Which one is not the environment variable?






15. Which part of UNIX is responsible for sending basic instructions to the computer's processor?

A. Kernel

B. Shell

C. Both