Linux - Managing your ZIP files

May 2017



ZIP files are specifically used under Microsoft Windows. Under Linux, the compression format is theGZip (.Gz) format or Tarball(.Tar.gz).

You can compress and decompress ZIP files with zip / unzip, available on most distributions.
  • To compress a set of files, use the following command:
    • zip-r filename.zip file_directory  
  • The -r indicates that the contents of the directory must be compressed as well as sub-directories.
  • To unzip a file, use the following command:
    • filename.zip unzip-d destination


Related


Published by deri58. Latest update on March 27, 2011 at 08:14 AM by deri58.
This document, titled "Linux - Managing your ZIP files," is available under the Creative Commons license. Any copy, reuse, or modification of the content should be sufficiently credited to CCM (ccm.net).