How to Compress or Decompress .tar.gz (or .tgz) files

To compress a folder of files into a single tar-zip file, use the command:

tar -czvf archive.tgz files/

To extract a tar-zip file into the current directory, use the command:

tar -xzvf archive.tgz

links

social