Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

melow71

macrumors member
Original poster
Dec 29, 2008
45
0
I recently typed a command I was told would help empty my trash bin but now it deletes every file I right click move to trash ?? The files never enter trash bin but simply get deleted and I don't know how to reverse this issue. Any help would be appreciated.

This is what I typed into terminal

sudo rm -rf ~/.Trash /Volumes/*/.Trashes
 
Try logging out and then logging back in.

If you can't log out right now, you might also be able to get the proper behavior back by force quitting finder-- (it will, of course start right up again)
 
The command will have deleted your Trash directories. Without them, files will be deleted immediately.

You should restore them with these commands:
Code:
mkdir -m go= ~/.Trash
chmod +a "everyone deny delete" ~/.Trash
sudo mkdir -m a=wx+t /.Trashes

For your external volumes (replace <volume> with the name of the volume):
Code:
sudo mkdir -m a=wx+t /Volumes/<volume>
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.