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:
- 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: