Zipping a File or Directory with gzip
If you want to compress only a single file or directory, you might choose gzip, rather than compress. gzip is more efficient, so you wind up with smaller files than you do with compress. As Code Listing 13.10 shows, you use gzip much the same way that you use compress.
To Zip a File or Directory with gzip:
Code Listing 13.10. Use gzip to zip up those bulky tar files.