Tar tar cvf backup.tar /etc

Gzip

gzip -9 backup.tar tar cvf - /etc gzip -9c > backup.tar.gz

To untar

tar xvf backup.tar

To ungzip

gunzip backup.tar.gz

To Untar and Ungzip

gunzip -c backup.tar.gz  | tar xvf -

To list contents of a tar.gz file

tar -ztvf file.tar.gz

To list contents of a zip file

unzip -l [filename].zip

comments powered by Disqus