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
| |||||||||
feedback
|
This question covers exactly the same ground as earlier questions on this topic; its answers may be merged with another identical question. See the FAQ.
|
in some cases yes .. involves running a script .. check this post out on perlmonks | |||||
|
feedback
|
|
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 | |||||||||||||||||
feedback
|
|
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. | |||||||||
feedback
|
|
To prevent hypopthetical future mistakes, you might want to alias rm to rm -i... | |||||
feedback
|