How to - create and extract a tar.gz archive

 Create an archive
tar czf /path/to/output/folder/filename.tar.gz /path/to/folder

Extract an arhive
tar -zxvf /path/to/folder/filename.tar.gz
gunzip -c /path/to/folder/filename.tar.gz

Extract one file from the archive
gunzip -c /path/to/folder/filename.tar.gz | tar -xvf - path/within/archive/filename.ext

View files in an archive
gunzip -c /path/to/folder/filename.tar.gz | tar -tvf -

Post new comment

The content of this field is kept private and will not be shown publicly.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.