Unix Questions and Answers

Take Exam

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
Show Answer Report

22. Which of the following commands is used to update access and modification times of a file?

  • grep
  • wc
  • touch
  • cat
Show Answer Report

23. Which command is used to count just the number of characters in a file?

  • wc - 1
  • wc -c
  • wc -w
  • wc -r
Show Answer Report

24. Which of the following commands is used to list contents of directories?

  • ls
  • lp
  • dir
  • tar
Show Answer Report

25. Which command is used to display a file contents in octal form?

  • cd
  • od
  • of
  • oct
Show Answer Report

26. Which command will be used with vi editor to insert text to left of cursor?

  • s
  • S
  • a
  • i
Show Answer Report

27. In vi editor, forward search is performed using the command.

  • :pat
  • :pat
  • /pat
  • All of the above
Show Answer Report

28. Which of the following special shell variables is used to process number of the last background job?

  • $!
  • $#
  • $0
  • $*
Show Answer Report

29. Which option will be used with ps command to slow the entire command line of the process being run?

  • -4
  • -f
  • -1
  • -4
Show Answer Report

30. Which of the following command addresses all users who are currently hooked on?

  • write
  • mail
  • wall
  • mesg
Show Answer Report
Questions and Answers for Competitive Exams Various Entrance Test