Ramin Hossaini

Linux: Tar and Zip

Jun
28

Compress:

  • z: Compress using GZIP
  • c: Create an archive (as opposed to the ‘x’ parameter to extract)
  • v: Verbose mode
  • f: Archive’s filename
$ tar -zcvf filename.tar.gz /directory

Extract:

$ tar -zxvf filename.tar.gz

Leave a Reply

Your email address will not be published. Required fields are marked *