UNDELETION EXT3 workaround

Michael T raselmsh at hotmail.com
Wed Feb 20 06:16:11 UTC 2008

Wouldn't the solution for this just be to add a couple of extra utilities,
like e.g. srm (== saferm)?  This provides the functionality without
breaking anything.  The utilities could also be aliases.



On 20.02.2008 02:57 "A. Walton"  wrote:
On Feb 17, 2008 8:11 PM, Vincent  wrote:
> alias rm="mv --force --target-directory=$HOME/.Trash/"
> alias rmdir="mv --force --target-directory=$HOME/.Trash/"

And of course, that would break any script that needs to use rm to
deal with a file, filling your trash dir with countless fragments of
evil just waiting to be stepped on by a curious user poking around
their trash directories (just another "this is in general a very bad

Not to mention that Trash isn't ~/.Trash anymore, but is now
~/$XDG_DATA_HOME/Trash and uses the FreeDesktop.org Trashing
specification to deal with files so that they can be restored to their
previous locations[1]. So, now users using rm would have their home
directories inflate without realizing why it was, and with no obvious
reason for why this is.

rm is a core utility for a reason. Users of it know what it does, and
they shouldn't be throwing it around frivolously. If you really want
the functionality back, fix EXT3, or use a different file system that
lets you "undelete". Or even better still, make backup practices a
regular daily routine, and never lose a file again.

Express yourself instantly with MSN Messenger! Download today it's FREE!

More information about the Ubuntu-devel-discuss mailing list