Trash

Are you afraid of typing "rm -rf ~/*" by mistake? Do you want to keep opportunities to undo these stupid actions? This script (or similar ones) is for you. This script is given without WARRANTY. You are still responsible for your own data.

Description

Each time you type 'rm', the normal command '/usr/bin/rm' is replaced by this script. In normal situations, the file is moved to $HOME/Trash. To force the use of the original command, pass '-f' as option.

Installation

Unpack archive
  tar xvfpz trash.tar.gz 

Copy the 'rm' script into a directory referenced in your $PATH, typically $HOME/bin.

Finish installation
  chmod a+x trash/rm
  cp trash/rm $HOME/bin

Download

trash_0.1.3.tar.gz

License

Copyright (C) 2005 Marc Wathelet

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

Modified June 22 2005 by Marc Wathelet

Valid CSS! Valid XHTML 1.0!