12.
|
Re-create the colors.1 and colors.2 files used in Figure 5-8 on page 135. Test your files by running diff u on them. Do you get the same results as in the figure?
|
13.
|
Try giving these two commands:
$ echo cat
$ cat echo
Explain the differences between them.
|
14.
|
Repeat exercise 5 using the file phone.gz, a compressed version of the list of names and phone numbers. Consider more than one approach to answer each question, and explain how you made your choices.
|
15.
|
Find existing files or create files that
-
gzip compresses by more than 80 percent.
-
gzip compresses by less than 10 percent.
-
Get larger when compressed with gzip.
-
Use ls l to determine the sizes of the files in question. Can you characterize the files in a, b, and c?
|
16.
|
Older email programs were not able to handle binary files. Suppose that you are emailing a file that has been compressed with gzip, which produces a binary file, and the recipient is using an old email program. Refer to the man page on uuencode, which converts a binary file to ASCII. Learn about the utility and how to use it.
-
Convert a compressed file to ASCII using uuencode. Is the encoded file larger or smaller than the compressed file? Explain. (If uuencode is not on the local system, you can install it using yum [page 476]; it is part of the sharutils package.)
-
Would it ever make sense to use uuencode on a file before compressing it? Explain. |