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

Eidorian

macrumors Penryn
Original poster
Mar 23, 2005
29,196
394
Indianapolis
I was tinkering with Termanal and ran the following command.

rm -rf ~/.Trash

Now whenever I want to put something in my Trash it won't stay in the trash. I'll get a prompt that it will just be deleted immediately. How can I restore my old trash behavior? Yeah, embarrassing.
 
Eidorian said:
I was tinkering with Termanal and ran the following command.

rm -rf ~/.Trash

Now whenever I want to put something in my Trash it won't stay in the trash. I'll get a prompt that it will just be deleted immediately. How can I restore my old trash behavior? Yeah, embarrassing.


OK, so you have more playing in the terminal do to:

Type:

mkdir .Trash

Restart and your done.
 
Make sure you do that from your home directory. To make it easier, type:
mkdir ~/.Trash


Next time you want to remove things from the trash via terminal, type:
rm -rf ~/.Trash/*

This will remove everything from inside the .Trash folder, rather than the .Trash folder itself.
 
grapes911 said:
Make sure you do that from your home directory. To make it easier, type:
mkdir ~/.Trash


Next time you want to remove things from the trash via terminal, type:
rm -rf ~/.Trash/*

This will remove everything from inside the .Trash folder, rather than the .Trash folder itself.
Yeah, I forgot the asterisks.
 
The terminal is a pretty powerful tool. You can do most things via terminal faster and more efficient than by any other method. But that power can really screw you over. I love the terminal and encourage everyone to use it, but you have to remember to be careful. :cool:
 
grapes911 said:
The terminal is a pretty powerful tool. You can do most things via terminal faster and more efficient than by any other method. But that power can really screw you over. I love the terminal and encourage everyone to use it, but you have to remember to be careful. :cool:
We run Redhat at my other job on over servers. It'd be nice to learn more UNIX commands so I tinker from time to time on my iMac. This is the first time something THAT bad has happened though. Normally it's SSH, copying, and finding applications.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.