Unix Interview Questions & Answers

Unix Interview Online Test

Unix technical interview questions and answers are frequently asked in system administration, DevOps, backend development, and support engineering roles. Unix forms the base for Linux and macOS, so companies expect candidates to understand file permissions, commands, shell scripting, process management, filters, pipes, and environment variables. Interviews in TCS, Infosys, Wipro, Cognizant, Capgemini, and Accenture often include Unix questions during both technical rounds and written tests. This guide explains frequently asked Unix commands and concepts using simple language, making it easy for freshers and experienced candidates to prepare. You can also download Unix interview questions PDFs and practice mock commands for better preparation.

1. Discuss the mount and unmount system calls

Show Answer

2. How do you create special files like named pipes and device files?

Show Answer

3. What is a FIFO?

Show Answer

4. Brief about the directory representation in UNIX

Show Answer

5. How are devices represented in UNIX?

Show Answer

6. Discuss the mount and unmount system calls

Show Answer

7. How does the inode map to data block of a file?

Show Answer

8. What is a shell?

Show Answer

9. Explain fork() system call.

Show Answer

10. How can you get/set an environment variable from a program?

Show Answer

11. How can a parent and child process communicate?

Show Answer

12. What is a zombie?

Show Answer

13. What are the process states in Unix?

Show Answer

14. What Happens when you execute a command?

Show Answer

15. What is 'ps' command for?

Show Answer

16. How would you kill a process?

Show Answer

17. What is an advantage of executing a process in background?

Show Answer

18. How do you execute one program from within another?

Show Answer

19. What is major difference between the Historic Unix and the new BSD release of Unix System V in terms of Memory Management?

Show Answer

20. What is the main goal of the Memory Management?

Show Answer

21. What scheme does the Kernel in Unix System V follow while choosing a swap device among the multiple swap devices?

Show Answer

22. What is a Region?

Show Answer

23. What are the events done by the Kernel after a process is being swapped out from the main memory?

Show Answer

24. What do you mean by u-area (user area) or u-block?

Show Answer

25. What are the entities that are swapped out of the main memory while swapping the process out of the main memory?

Show Answer

26. What is Fork swap?

Show Answer

27. What is Expansion swap?

Show Answer

28. How the Swapper works?

Show Answer

29. What are the processes that are not bothered by the swapper? Give Reason.

Show Answer

30. What are the requirements for a swapper to work?

Show Answer

31. What are the criteria for choosing a process for swapping into memory from the swap device?

Show Answer

32. What are the criteria for choosing a process for swapping out of the memory to the swap device?

Show Answer

33. What are conditions on which deadlock can occur while swapping the processes?

Show Answer

34. What are conditions for a machine to support Demand Paging?

Show Answer

35. What is ‘the principle of locality?

Show Answer

36. What is the working set of a process?

Show Answer

37. What is the window of the working set of a process?

Show Answer

38. What is called a page fault?

Show Answer

39. What are data structures that are used for Demand Paging?

Show Answer

40. How the Kernel handles the fork() system call in traditional Unix and in the System V Unix, while swapping?

Show Answer

41. Difference between the fork() and vfork() system call?

Show Answer

42. What is BSS(Block Started by Symbol)?

Show Answer

43. What is Page-Stealer process?

Show Answer

44. Name two paging states for a page in memory?

Show Answer

45. What are the phases of swapping a page from the memory?

Show Answer

46. In what way the Fault Handlers and the Interrupt handlers are different?

Show Answer

47. What is validity fault?

Show Answer

48. What does the swapping system do if it identifies the illegal page for swapping?

Show Answer

49. At what mode the fault handler executes?

Show Answer

50. What do you mean by the protection fault?

Show Answer

51. For which kind of fault the page is checked first?

Show Answer

52. In what way the protection fault handler concludes?

Show Answer

53. How the Kernel handles both the page stealer and the fault handler?

Show Answer
Questions and Answers for Competitive Exams Various Entrance Test