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

41.  Which command is used to display and create files?

  • cat
  • vi
  • ed
  • lyrix
Show Answer Report

42. The second set of the three permissions (r-) indicates that

  • group has read permission only
  • other has read permission only
  • owner has read permission only
  • group has write permission only
Show Answer Report

43. Which column contains all details of the permissions of a file when you issue the ls -l command?

  • second
  • fourth
  • third
  • first
Show Answer Report

44. Which of the following commands is used to display your working directory?

  • dir
  • prompt $p$g
  • pwd
  • path
Show Answer Report

45. While working with mail command, which command is used to save mail i a separate file?

  • s
  • r
  • w
  • d
Show Answer Report

46. The command used to compare the files is known as

  • comp
  • cmp
  • do
  • ccp
Show Answer Report

47. Which command is used to terminate a process?

  • shutdown
  • haltsys
  • cancel
  • kill
Show Answer Report

48. Which option will be used with sort command to start sorting ofter the nth column of the (m+l)th field?

  • -m.n
  • +m.n
  • + n.m+1
  • +(m+l).n
Show Answer Report

49.  The cp command uses:

  • standard input file
  • standard output file
  • both input and output file
  • neither standard input nor standard output file
Show Answer Report
Questions and Answers for Competitive Exams Various Entrance Test