UNDO LINUX Trash Command
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.
To prevent hypopthetical future mistakes, you might want to alias rm to rm -i...
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.
On ubuntu or similar:
Then put that alias in .bashrc or the appropriate login script for your shell of choice.
The other commands in the