Re: important rm coomand!!!!
"Keith Mastin" <[email protected]>
| Newsgroups | gmane.linux.redhat.release.enigma |
|---|---|
| Message-ID | <[email protected]> |
> On Wed, Mar 05, 2003 at 11:03:34PM -0800, upendra wrote: >> Hi all Linux Masters >> Time to do somethig >> My friend has done some serious stuff by doing this >> >> rm /hisfile.c and answering yes >> Well is there by anychance or way he can get back the >> file ? >> I read somewhere that unless until somefile overwrites >> those inodes ,the file is still there, only file >> database rom os gets removed... >> >> please forward to linux gurus >> bye >> upendra > There are generally three ways: > 1.debugfs with the ls -ld command > 2. mc (midnight comander) > 3. a restore program that needs to be installed. IIRC there was something about this on this very list just a few days ago. The OP (not sure who it was) was told to alias rm to a trash directory then. All the above information was given then too. We constantly tell people to make backups and to make copies of their work, not to work from the only copy of a script. IMHO, the question should have been "my friend rm'ed the file and the original is corrupt and the backup doesn't have it yet.... what should I do?"... that question is worth answering. The answer to the question he asked is to take the keyboard away from his friend. :) -- Keith Mastin BeechTree Information Technology Services Inc. Toronto, Canada (416)696-6070