Unix Questions and Answers

Practice Mode
Showing 10 of 49 questions
Q21
The agency that sits between the user and the UNIX system is called the
  • A logic
  • B profile
  • C shell
  • D erxc
Answer: Option C
Q22
Which of the following commands is used to update access and modification times of a file?
  • A grep
  • B wc
  • C touch
  • D cat
Answer: Option C
Q23
Which command is used to count just the number of characters in a file?
  • A wc - 1
  • B wc -c
  • C wc -w
  • D wc -r
Answer: Option B
Q24
Which of the following commands is used to list contents of directories?
  • A ls
  • B lp
  • C dir
  • D tar
Answer: Option A
Q25
Which command is used to display a file contents in octal form?
  • A cd
  • B od
  • C of
  • D oct
Answer: Option B
Q26
Which command will be used with vi editor to insert text to left of cursor?
  • A s
  • B S
  • C a
  • D i
Answer: Option D
Q27
In vi editor, forward search is performed using the command.
  • A :pat
  • B :pat
  • C /pat
  • D All of the above
Answer: Option D
Q28
Which of the following special shell variables is used to process number of the last background job?
  • A $!
  • B $#
  • C $0
  • D $*
Answer: Option A
Q29
Which option will be used with ps command to slow the entire command line of the process being run?
  • A -4
  • B -f
  • C -1
  • D -4
Answer: Option B
Q30
Which of the following command addresses all users who are currently hooked on?
  • A write
  • B mail
  • C wall
  • D mesg
Answer: Option C
Questions and Answers for Competitive Exams Various Entrance Test