`gunzip` is a command line tool for decompressing `.gz` format compressed files.
Example
- Compress file:
gunzip file.txt
- Decompress file:
gunzip file.txt.gz
- Keep original file:
gunzip -k file.txt.gz
- Display detailed information:
gunzip -v file.txt.gz
- Recursively compress or decompress files in subdirectories:
gunzip -r directory/
- Check file integrity:
gunzip -t file.txt.gz
- Output compression ratio:
gunzip -c file.txt.gz
- Do not save the original file name:
gunzip -N file.txt.gz
Note: The gunzip
command only supports compressed files in .gz
format.