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.
file to create
file is deleted.
file.gz to create
file.gz is deleted.