UNDELETION EXT3 workaround
A. Walton
awalton at gmail.com
Wed Feb 20 01:57:06 UTC 2008
On Feb 17, 2008 8:11 PM, Vincent <n1lqj at cox.net> wrote:
[snip]
> alias rm="mv --force --target-directory=$HOME/.Trash/"
> alias rmdir="mv --force --target-directory=$HOME/.Trash/"
[/snip]
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
idea").
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.
-2c.
A. Walton
[1]: http://www.ramendik.ru/docs/trashspec.html
>
> Regards,
>
> Vincent Chapman
>
>
> --
> Ubuntu-devel-discuss mailing list
> Ubuntu-devel-discuss at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss
>
More information about the Ubuntu-devel-discuss
mailing list