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

macman0910

macrumors newbie
Original poster
Jul 17, 2010
8
0
Okay, I needed to empty the trash so I went onto the apple forums and it told me to type "sudo rm -rf ~/.Trash" in the Terminal but now files won't go to the trash. They're instantly deleted. How do I make the Trash work again?
 
Okay, I needed to empty the trash so I went onto the apple forums and it told me to type "sudo rm -rf ~/.Trash" in the Terminal but now files won't go to the trash. They're instantly deleted. How do I make the Trash work again?

Sigh. Another example of why newbies shouldn't use Terminal.

What it probably told you to do was type

Code:
sudo rm -rf ~/.Trash/*

...which is the same thing as right-clicking on the Trash icon and selecting "Empty Trash" . Instead, you deleted the actual Trash folder.
 
To add to that, you may have some success recreating the folder, though I'm not 100% sure it will work.

In the Terminal (and of course be very careful to exactly type this in, or just copy and paste):
Code:
sudo mkdir ~/.Trash

That will create a new folder for the Trash, but I'm not 100% sure if the permissions will give you trouble.

I would also recommend logging out and then back in once you do that.

jW
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.