1.
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?
2.
Which of the following commands can be used to create a new file that is 100kB in size?
3.
When piping the output of find to the xargs command, what option to find is useful if the filenames have spaces in them?
4.
Which of the following commands will produce the following output?
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 1255 4.4 0.9 60716 34824 tty7 Ss+ 09:25 19:04 /usr/bin/X :0 - root 2016 0.0 0.0 1792 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 1624 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
5.
In the vi editor, which of the following commands will copy the current line into the vi buffer?
6.
What does the ?symbol mean in the following grep regular expression: grep '^d[aei]\?d$' /usr/share/dict/words
7.
Which signal is sent to a suspended process in order to have it resume execution?
8.
Which vi command will change modes so that text can be entered by typing in the keyboard?
9.
What is the purpose of the xargs command?
10.
Which of the following commands will send output from the program myapp to both standard output (stdout) and the file file1.log?