Operating System Essay

1102 WordsDec 20, 20115 Pages
Guide to UNIX Using Linux Fourth Edition Chapter 5 Solutions Answers to the Chapter 5 Review Questions 1. You have just finished a 25-page paper that you have written using Emacs. The file containing the paper is called /assignments/data_sources. After your instructor has briefly looked at the paper, she recommends that you change all instances of the reference “data is” to “data are” before you submit it. Which of the following commands can you use to locate these references in the file for a quick assessment of how much you have to change? Answer: c. grep “data is” /assignments/data_sources 2. You are interested in determining the number of words in your /assignments/data_sources file mentioned in Question…show more content…
How can you link multiple files to manipulate the data in those files? Answer: c. with a common or key field 9. While in the Bash shell, you have written a simple script file and now want to execute the script. Which of the following commands enables you to run the script? Answer: a. sh 10. You are using the grep command, but it is only searching through files in your immediate home directory. What option enables you to search through subdirectories below your home directory? Answer: d. -r 11. Your software has a bug in that it enables you to create a vendors file in which there are duplicate entries of vendors. Which of the following methods enables you to remove the duplicate vendors in this text file? Answer: c. Sort the file and then use the uniq command to remove the duplicates, inputting the result in a new file. 12. Each time you list the files in your home directory, the output scrolls by so fast you can’t read it. Which of the following enables you to view the output one screen at a time? Answer: b. ls -l | more 13. You are creating a file to send over the Internet via a satellite connection that only allows you to send files under 250 KB. Which of the following commands enables you to determine the number of bytes in the file before you try to send it? Answer: d. wc -c 14. In the command sed -f fixit notes > instructions, what
Open Document