gunzip Command Generator
Generate gunzip commands to decompress gzip files
Getting Started with gunzip
## What is gunzip?
`gunzip` decompresses files created by `gzip`, `compress`, or `pack`. It expands `file.gz` back to `file` (removing the `.gz` unless you keep it). It is equivalent to `gzip -d`.
## How to Use
1. **Toggle Flags**: `-k` to keep the `.gz`, `-r` for recursive, `-t` to test. 2. **Name the File**: the compressed file to decompress. 3. **Copy & Run**: paste the generated command into your terminal.
Flags & Tips
gunzip merges short flags into one bundle:
``` gunzip -kr logs/ gunzip -t archive.gz gunzip -c archive.gz > out.txt ```
### Common flags - `-k` — keep the compressed file after decompressing - `-f` — force overwrite and decompress even if the file has multiple links - `-r` — operate recursively on directories - `-v` — verbose - `-c` — write to standard output, keep the `.gz` - `-t` — test integrity without extracting
### Tips - Use `-c` to inspect a compressed text file without removing it: `gunzip -c file.gz`. - `-t` checks a downloaded archive before you trust it.
▶How do I keep the .gz file after decompressing?
▶How can I decompress into a different filename?
If this tool has been helpful to you, consider buying me a coffee.
Buy me a coffee