File compress and uncompress in linux

5 (100%) 1 vote

File compress and uncompress in linux

gzip command compresses files. Each single file is compressed into a single file. The compressed file consists of a GNU zip header and deflated data.
If given a file as an argument, gzip compresses the file, adds a “.gz” suffix, and deletes the original file.


gzip file Compress file to create file.gz. Original file is deleted.


gunzip file.gz Uncompress file.gz to create file. Original file.gz is deleted.



For any query or issue, feel free to discuss on
%d bloggers like this: