Tuesday, May 08, 2007

Someone Take Out the Trash

While playing around with WINE I got some files stuck in the trash can. I kept getting a "You do not have the permission required to delete" error. After a bit of reading I found the following command line will delete these stuck files.

Open a Terminal window and type:
sudo rm -rf $HOME/.Trash

I learned that you should NOT use the -f switch on whims, it will just remove (delete) whatever you tell it too without any undo or warnings.

BTW rm -r DIRECTORY will delete whole directories from a TERMINAL.