We have listed here some multiple choice questions with answer on UNIX Operating System, Which has asked by multiple companies like McAfee, Calsoft, Infotech, Capgemini, SAP etc.
You can prepare your job written and interview by using these sets of question fro here.
1. Which command shows some attributes of a process?
2. Which option is used with ps command to list system processes?
d) –A and -e
3. There are ___ distinct phases of a process.
4. Which system call is used by the parent process to wait for the child process to complete?
5. Which of the following shell(s) allows the user to run jobs in the background even when the user has logged out (without using nohup command)?
d) C and bash
6. What is the PID of the process who takes the parentage of the process run with nohup command?
7. Which of the following command is used to suspend a job?
8. To remove a job from the queue, which option is used with at command?
9. The cron tab is a table having a list of commands that are scheduled to be run at regular intervals.
10. Which of the following function(s) are performed by an interactive shell?
a) job control
d) job control, history, aliases
11. Which one of the following is arguably the best shell to use?
12. Which one of the following command is used to create a child shell?
13. The shell has ____ prompts.
14. Which of the following symbols are used for accessing previous commands by event numbers?
d) ! and r
15. Which one of the following keyword is used with the set command to avoid overwrite existing file?
16. The ____ acts as a shorthand representation of the home directory.
17. Which file is executed every time a second shell is called up?
b) rc file
18. Which command is used to link a file with multiple filenames?
19. Which option is used with find command to search for files based on access time?
20. pr command adds ____ lines of margin at the top and bottom.
21. Which command is used for displaying the beginning of a file?
22. Which option is used with the head command to specify line count to display?
23. Which of the following command is incorrect?
a) pr dept.lst
b) head -n 5 emp.lst
c) tail -o +5 emp.lst
d) tail -3 emp.lst
24. Which one of the following commands is incorrect?
a) $ cut -d “|” -f 1,4 emp.lst
b) $ cut -c -3 emp.lst
c) $ tail -c -511 foo
d) $ tail -c 500 foo
25. Sort command uses ____ as default field delimiter.
b) single space
c) double tab
d) one or more continuous spaces