Compress / uncompress files - Linux Views : 418
Tagged in : Linux
0 0
Send mail
Compress / uncompress files

To compressing a single file:

gzip file



To decompress it:

gunzip file.gz



To compress a directory:

Compressing
tar czf aga.tar.gz directory


Listing
tar tzf aga.tar.gz


Uncompressing
tar xf aga.tar directory



.zip files:

zip -r archivename directories files


unzip -l archivename


unzip archivename


By Sanju, On - 2009-11-13



    Login to add Comments .