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
|
1
|
|||
|
|
migrated from stackoverflow.com |
|
|
|
You're looking for:
The
|
||||||||||
|
|
|
You can the
More details on the manual page. |
|||
|
|
|
|
Use the
|
||
|
|
|
|
If it's actually a tarball (.tgz or .tar.gz extension), then instead of redirecting to file like all of the answers so far, you'll want to pipe it to tar, like so:
so that you get the actual contents. |
||||||
|
|
|
A simpler solution is to just use gunzip as a filter like this:
|
||
|
|
|
|
Gnu tar can read gzip files: |
||
|
|