Tag: unix

Questions Related to unix

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

  1. grep

  2. wc

  3. touch

  4. cat


Correct Option: C

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

  1. :pat

  2. :pat

  3. /pat

  4. All of the above


Correct Option: D

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

  1. $!

  2. $#

  3. $0

  4. $*


Correct Option: A