1.
In the vi editor, which of the following commands will copy the current line into the vi buffer?
2.
You are writing text in vi. Now you want to save your changes and exit. Which TWO sequence of inputs will accomplish this?
3.
In the command foo < bar | foobar, which ONE of the following statements is correct?
4.
What does the + symbol mean in the following grep regular expression: grep '^d[aei]\+d$' /usr/share/dict/words
5.
Which option to the tee command will cause the output to be concatenated on the end of the output file instead of overwriting the existing file contents?
6.
Which of the following shell redirections will write standard output and standard error output to a file named filename?
7.
Which of the following commands will produce the following output: USERPID %CPU %MEMVSZ RSS TTY STAT STARTTIME COMMAND root 1255 4.4 0.9 6071634824 tty7 Ss+ 09:25 19:04 /usr/bin/X :0 - root 2016 0.0 0.0 792 560 tty1 Ss+ 09:26 0:00 /sbin/getty -8 matt 5204 0.0 0.1 6320 3696 pts/4 Ss 13:12 0:00 bash matt 5219 0.0 0.0 3988 624 pts/4 S+ 13:12 0:00 man bash matt 5229 0.0 0.0 3584 932 pts/4 S+ 13:12 0:00 pager -s matt 6768 0.0 0.1 10504 3880 pts/2 S+ 15:11 0:00 vi README.txt
8.
While editing a file in vi, the file changes due to another process. Without exiting vi, how can the file be reopened for editing with the new content?
9.
Which of the following explanations are valid reasons to run a command in the background of your shell?
10.
What is the purpose of the & character at the end of a command line?