Gzip
Type following command to compress a file at shell prompt
gzip filename.ext
-> The file will be compressed and save as filename.ext.gz
Type following command to expand a compressed file -> The filename.ext.gz is deleted and replace with filename.ext Type following command to compress multiple files at shell prompt Zip -> filename.zip represents new zip file, files represents files need to be compressed Type following command to expand a compressed file Type following command to compress multiple files at shell prompt Add directory to multiple files -> will compress file1, file2, file3, /user/work/school directory content into filename.zip Related posts:
gunzip filename.ext.gz</code>
-> will compress file1, file2, file3 into filename.gzip.gzip filename.gz file1 file2 file3
Type following command to compress a file at a shell prompt
zip -r filename.zip files</code>
unzip filename.zip
-> will compress file1, file2, file3 into filename.zipzip filename.zip file1 file2 file3
zip filename.zip file1 file2 file3 /user/work/school</code>





[...] http://twoseven.co.nz/?p=109 – bookmarked by 6 members originally found by plowna on 2008-08-30 Compressing with GZip and Zip in CentOS http://pixert.com/2008/05/15/compressing-with-gzip-and-zip-in-centos/ – bookmarked by 1 [...]