Unix Questions and Answers
The Unix operating system is a powerful, multitasking platform widely used in computing environments. Knowledge of Unix commands, file handling, and process management is vital for students and professionals preparing for programming questions and answers in technical interviews and campus placements at TCS, IBM, and Tech Mahindra. This guide includes Unix MCQs and problem-solving examples that focus on shell scripting, permissions, and file system hierarchy. Practicing these questions improves command-line fluency and builds the foundation for advanced OS and system administration roles.
Unix
Showing 10 of
49 questions
21. The agency that sits between the user and the UNIX system is called the
- logic
- profile
- shell
- erxc
22. Which of the following commands is used to update access and modification times of a file?
- grep
- wc
- touch
- cat
23. Which command is used to count just the number of characters in a file?
- wc - 1
- wc -c
- wc -w
- wc -r
24. Which of the following commands is used to list contents of directories?
- ls
- lp
- dir
- tar
26. Which command will be used with vi editor to insert text to left of cursor?
- s
- S
- a
- i
27. In vi editor, forward search is performed using the command.
- :pat
- :pat
- /pat
- All of the above
28. Which of the following special shell variables is used to process number of the last background job?
- $!
- $#
- $0
- $*
29. Which option will be used with ps command to slow the entire command line of the process being run?
- -4
- -f
- -1
- -4
30. Which of the following command addresses all users who are currently hooked on?
- write
- wall
- mesg