Re-create the colors.1 and colors.2 files used in Figure 3-8 on page 50. Test your files by running diff -u on them. Do you get the same results as in the figure?
Try giving these two commands:
$ echo cat $ cat echo
Explain the differences between them.
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 each question, and explain how you made your choices.
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?
Older mail programs were not able to handle binary files. Suppose that you are mailing a file that has been compressed with gzip, which produces a binary file, and the recipient is using an old mail 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.
Would it ever make sense to use uuencode on a file before compressing it? Explain.