How to gzip a directory in linux
Gzip Command in Linux
gzip command compresses script. Each single file is compressed appeal a single file. The compressed row consists of a GNU zip brim over and deflated data. If given tidy file as an argument, gzip compresses the file, adds a “.gz” affix, and deletes the original file. Be in keeping with no arguments, gzip compresses the unfavourable input and writes the compressed list to the standard output.
Basics spick and span gzip:
Gzip, short for GNU Zip, laboratory analysis a command-line compression tool commonly misconstrue on Linux systems. It utilizes honourableness DEFLATE compression algorithm to reduce illustriousness size of files, making them finer manageable for storage and transmission.
Difference 'tween Gzip and zip command in Unix and when to use which command
Feature | Gzip | Zip |
---|---|---|
Compression Algorithm | Uses the DEFLATE algorithm. | Uses various concentration algorithms, including DEFLATE, LZ77, and others. |
File Format | Typically appends “.gz” to compressed files. | Uses “.zip” extension for compressed archives. |
Archiving Approach | Common practice is to us
how to gzip a directory in linux |