Exercises

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 they useful when you run processes in the background?
4.Assume that the following files are in the working directory:
$ ls 
intro      notesb     ref2       section1   section3   section4b
notesa     ref1       ref3       section2   section4a  sentrev

Give commands for each of the following, using wildcards to express filenames with as few characters as possible.

  1. List all files that begin with section.

  2. List the section1, section2, and section3 files only.

  3. List the

Get A Practical Guide to Red Hat® Linux® 8 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.