Linux commands: gunzip
A quick guide to the `gunzip` command, used to unzip gzipped files
The gunzip
command is basically equivalent to the gzip
command, except the -d
option is always enabled by default.
The command can be invoked in this way:
gunzip filename.gz
This will gunzip and will remove the .gz
extension, putting the result in the filename
file. If that file exists, it will overwrite that.
You can extract to a different filename using output redirection using the -c
option:
gunzip -c filename.gz > anotherfilename
The gunzip
command works on Linux, macOS, WSL, and anywhere you have a UNIX environment
→ Get my Linux Command Line Handbook
Here is how can I help you:
- COURSES where I teach everything I know
- THE VALLEY OF CODE your web development manual
- BOOTCAMP 2024 cohort in progress, next edition in 2025
- BOOKS 16 coding ebooks you can download for free on JS Python C PHP and lots more
- SOLO LAB everything I know about running a lifestyle business as a solopreneur
- Interesting links collection
- Follow me on X