DebianThis forum is for the discussion of Debian Linux.
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.
Unfortunately you can't unless you have a backup to restore.
Unlike DOS/Windows the Unix/Linux OS assumes you mean what you type so won't ask you if you're really really sure before it does what you tell it. Files deleted are actually deleted so there is no undelete feature.
Well, speaking as someone who uses reiserfs and ext3, there's at least 2 other good things to learn from this:
- Test out a command that deletes files with ls first to see if it's what you want to do (not always possible, but a good way to make removing files a deliberate action; and
- Backup your system and your data even more regularly than you think you need to.