Basic Unix Quiz - 3
Tests fundamental Unix commands, shell concepts, and vi editor operations
Questions
The agency that sits between the user and the UNIX system is called the
- logic
- profile
- shell
- erxc
Which of the following commands is used to update access and modification times of a file?
- grep
- wc
- touch
- cat
Which command is used to count just the number of characters in a file?
- wc - 1
- wc -c
- wc -w
- wc -r
Which of the following commands is used to list contents of directories?
- ls
- lp
- dir
- tar
Which command is used to display a file contents in octal form?
- cd
- od
- of
- oct
Which command will be used with vi editor to insert text to left of cursor?
- s
- S
- a
- i
In vi editor, forward search is performed using the command.
- :pat
- :pat
- /pat
- All of the above
Which of the following special shell variables is used to process number of the last background job?
- $!
- $#
- $0
- $*
Which option will be used with ps command to slow the entire command line of the process being run?
- -4
- -f
- -1
- -5
Which of the following command addresses all users who are currently hooked on?
- write
- mail
- wall
- mesg