Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'A shell function to make 'rm' move files to the trash' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A shell function to make 'rm' move files to the trash
Authored by: spfolly on Feb 29, '08 09:19:55AM

A nice idea, but you haven't fully appreciated how the Trash works. This is fine for deleting stuff from your home folder, but if you use the Finder to delete stuff from, for example, a USB memory key, then the files get moved to a .Trashes folder on that volume. (And then a directory within that based on your UID.) The Trash folder viewable from the finder is a combination of ~/.Trash and .Trashes folders in mounted volumes.



[ Reply to This | # ]