Shriramana Sharma wrote: > To my knowledge, the rm command totally unlinks files. There is no > command which is used to delete a file that only pushes files to the > trash like in KDE (and GNOME?). > > Can we please have a deletion command that moves files to the trash can? > Otherwise, it becomes impossible to recover files deleted accidentally > from a terminal.
This can easily be accomplished by the user if the user desires it by using the 'mv' command instead of the 'rm' command. As an alias for the user's shell. alias del='mv --backup=numbered --target-directory=/path/to/trash' As a script. #!/bin/sh exec mv --backup=numbered --target-directory=/path/to/trash "$@" Bob _______________________________________________ Bug-coreutils mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-coreutils
