Possible Duplicate:
UNDO LINUX Trash Command
Hi,
Is there any simple way to undo an rm command?
The question is purely theoretical; I have NEVER deleted the log of a benchmark queue who took a whole lunchtime to run.
Thanks,
Udi
Hi, Is there any simple way to undo an The question is purely theoretical; I have NEVER deleted the log of a benchmark queue who took a whole lunchtime to run. Thanks, Udi |
|||||||||
|
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
|
in some cases yes .. involves running a script .. check this post out on perlmonks |
|||||||||
|
|
On ubuntu or similar:
Then put that alias in .bashrc or the appropriate login script for your shell of choice. The The other commands in the |
|||||||||||||||||
|
|
The traditional answer is:
because on many unix filesystems this simple isn't possible, or is very difficult. As others have noted this is not the end-all and be-all of the issue any more, but not making mistakes of this kind is still the preferred approach. |
|||||||||
|
|
To prevent hypopthetical future mistakes, you might want to alias rm to rm -i... |
|||||
|