SIMULATION
Which command is used to start another command with a given nice level? (Specify ONLY the command without any path or parameters.)
Which run levels should never be declared as the default run level when using SysV init? (Choose TWO correct answers.)
A. 0
B. 1
C. 3
D. 5
E. 6
Which of the following commands updates the linker cache of shared libraries?
A. mkcache
B. soconfig
C. mkldconfig
D. lddconfig E. ldconfig
What is the difference between the i and a commands of the vi editor?
A. i (interactive) requires the user to explicitly switch between vi modes whereas a (automatic) switches modes automatically.
B. i (insert) inserts text before the current cursor position whereas a (append) inserts text after the cursor.
C. i (independent rows) starts every new line at the first character whereas a (aligned rows) keeps the indentation of the previous line.
D. i (interrupt) temporarily suspends editing of a file to the background whereas a (abort) terminates editing.
Which of the following commands replaces each occurrence of 'bob' in the file letter with 'Bob' and writes the result to the file newletter?
A. sed '/bob/Bob' letter > newletter
B. sed s/bob/Bob/ letter < newletter
C. sed 's/bob/Bob' letter > newletter
D. sed 's/bob/Bob/g' letter > newletter
E. sed 's/bob, Bob/' letter > newletter
When given the following command line. echo "foo bar" | tee bar | cat
Which of the following output is created?
A. cat
B. foo bar
C. tee bar
D. bar
E. foo
Which of the following is the device file name for the second partition on the only SCSI drive?
A. /dev/hda1
B. /dev/sda2
C. /dev/sd0a2
D. /dev/sd1p2
Which of the following commands shows the definition of a given shell command?
A. where
B. stat
C. type
D. case
Pressing the Ctrl-C combination on the keyboard while a command is executing in the foreground sends which of the following signal codes?
A. 1(SIGHUP)
B. 2(SIGINT)
C. 3(SIGQUIT)
D. 9(SIGKILL)
E. 15(SIGTERM)
When in Normal mode in vi, which character can be used to begin a reverse search of the text?
A. ?
B. /
C. F
D. r