Friday, April 10, 2009

Zip Unzip file in UNIX

To zip a file in unix:
gzip filename.txt
output: filename.txt.gz

To unzip a file in unix:
gunzip filename.txt.gz
output: filename.txt

To mass unzip/zip files in a particular directory, you may try issuing gzip * (which will zip all unzip files)