Which of the following commands will replace all instances of the word "dog" with "pig" in the file named "some_file" and send the output to stdout? Select all answers that apply.
A. sed -e s/dog/pig/g some_file
B. sed -e s/dog/pig/ some_file
C. sed -e s:dog:pig:g some_file
D. cat some_file | sed -e s/dog/pig/g
查看答案
Which of the following commands can be used to view the last 15 lines of a file? Select all answers that apply.
A. tail +15 some_file
B. tail -15 some_file
C. tail -n15 some_file
D. tail=15 some_file
Which command is used to combine three files into a fourth file?
A. cat file1 file2 file3 > file4
B. cp file1 file2 file3 > file4
C. cat file1 > file2 > file3 > file4
D. cat file1 > file2 > file3 | file4
Which of the following is used to exit emacs after prompting to save all modified files?
A. CTRL-x c
B. CTRL-x s
CTRL-x CTRL-s
D. CTRL-x CTRL-c
Which of the following commands might be used to start the GNOME graphical help system? Select all answers that apply.
A. gnome-help
B. gnome-info
C. yelp
D. pleasehelpme