Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
SUSE 11. I have issued the command "gzip -r -c directory > archive.gz" over a complete directory tree. I've got no errors or warnings. I can decompress the gz file also without errors, but what I get is a single file which is the concat of all of the original files, including binaries, without posibility of splitting them into the original ones.
I suppose I've lost my files, no?.
Secondary question: why does gzip let me issue that destructive command?
The gzip command was followed by a "rm -rf". But I have all backed up previously.
I knew that all, I had all already tested with "zip" command, but tried gzip, saw it compressed better, and changed the command without thinking too much.
I'd like gzip to have said "are you sure of concatting all files into one?" I would do if I had programmed gzip.
So this is a forum for criticizing admins who make a mistake? I didn't know. I will deregister right now. Thanks for your time, and I hope you'll never "bark up the wrong tree" (I don't know wath it means, it's Instant Translator)
The gzip command was followed by a "rm -rf". But I have all backed up previously.
I knew that all, I had all already tested with "zip" command, but tried gzip, saw it compressed better, and changed the command without thinking too much.
I'd like gzip to have said "are you sure of concatting all files into one?" I would do if I had programmed gzip.
You would find that not working very well in scripts, or cron - where there may be no user attached...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.