I have looked around but can't figure out how to preserve the original file with gunzip (But I can with File Roller)
Here is a sample to show what I'm trying to do.
Create file called helloworld.txt with random data.
gzip file:
Code:
gzip helloworld.txt
rename file to some other random name
Code:
mv helloworld.txt.gz 12345.gz
unzip file:
This results in 12345.txt however, my desired result is helloworld.txt
If I do the same thing but extract with File Roller, it works
Code:
gzip helloworld.txt
mv helloworld.txt.gz 12345.gz
file-roller -h 12345.gz
This gives me the file of helloworld.txt
How can I do this with a headless app such as gunzip (I don't care what program I use)? My main problem is the only solution I have found is to use file-roller which requires a GUI.