Zipping Files and Directories with zip
If you're working with files and directories that will be accessed on the Windows platform, you might need to use zip (rather than gzip). This zip is like DOS or Windows zip, so it's a safer option than gzip, which can work, but it depends on the software available on the Windows system. zip files are compressed to save disk space and sometimes contain multiple files (see Code Listing 13.12).
To Zip Files or Directories with zip:
Code Listing 13.12. Use zip to compress files, particularly those you'll share with Windows users.