Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
| 1. | What does the shell ordinarily do while a command is executing? What should you do if you do not want to wait for a command to finish before running another command? |
| 2. | Using sort as a filter, rewrite the following sequence of commands:
$ sort list > temp $ lpr temp $ rm temp |
| 3. | What is a PID number? Why are these numbers useful when you run processes in the background? Which utility displays the PID numbers of the commands you are running? |
| 4. | Assume that the following files are in the working directory:
$ ls
intro notesb ref2 section1 section3 section4b
notesa ref1 ref3 section2 section4a sentrevGive commands for each of the following, using wildcards to express filenames with as few characters as possible.
|
| 5. | Refer to Part V or the man pages to determine which command will
|
| 6. | Give a command to
|
| 7. | The lpr and sort utilities accept input either from a file named on the command line or from standard input.
|
| 8. | Give an example of a command that uses grep
In which of the preceding cases is grep used as a filter? |
| 9. | Explain the following error message. Which filenames would a subsequent ls display?
$ ls abc abd abe abf abg abh $ rm abc ab* rm: cannot remove 'abc': No such file or directory |