Find existing files or create files that
a. gzip compresses by more than 80 percent
b. gzip compresses by less than 10 percent
c. 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?
1 answer
This is a lab that you should do in front of the computer. I can suggest that most text files and uncompressed database files can be compressed by more than 80%. Most image files (.jpg, .png, etc) will be compressed by less than 10%. I suppose zip files will get larger, by definition.