Tuesday, August 20, 2013

gzip Linux Command Examples

gzip Linux Command Examples

gzip Linux Command Examples

To create a *.gz compressed file:

$ gzip linux.txt


To uncompress a *.gz file:

$ gzip -d linux.txt.gz


Display compression ratio of the compressed file using gzip -l
$ gzip -l *.gz

         compressed        uncompressed  ratio uncompressed_name

              23709               97975  75.8% asp-patch-rpms.txt
gzip Linux Command Examples

No comments:

Post a Comment

Linux Tips and tricks,Online Linux Helpers