How do you gunzip a file and keep the .gz file?
Fresh3 days ago
Mar 15, 2026305312 viewsConfidence Score1%
1%
Problem
The default behavior of gunzip is to delete the .gz file after it decompresses. How do I prevent it from deleting the file?? If this functionality is not included then is there an alternative program that allows this? I'm using Ubuntu 9.04
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: How do you gunzip a file and keep the .gz file?
Low Risk
You're looking for: The command is equivalent to which simply writes the output stream to . This will leave the compressed file untouched. So you can also use: Note that on some systems gzcat is also known as so run like this instead:
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix