Linux commands: gunzip
New Courses Coming Soon
Join the waiting lists
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
- CODING BOOTCAMP cohort course - next edition in 2025
- THE VALLEY OF CODE your web development manual
- BOOKS 17 coding ebooks you can download for free on JS Python C PHP and lots more
- Interesting links collection
- Follow me on X