A recycling bin for unix


If you copy the files can, mtcan, seecan, and mtcan2 from this web directory to your ~/bin directory on a unix/linux computer, then you can get a Recycling Bin / Trashcan capability. This is similar in functionatlity to http://kb.iu.edu/data/abeh.html, though one difference is that it sets your $HOME/.trashcan directory to be readable only by the user, to hinder garbologists.

Examples of use:

# various ways of moving files to the trashcan:
can file
can file1 file2
can files*

Bug: at present, the "can" command won't work on files with spaces in their name.

seecan # see the files currently in the traschan

mtcan # empty the trashcan (permanently delete the contents)