Tip & How-To about Computers & Internet
Ever try to empty your trash on your Mac and the system gives you an error telling you that a file in the trash can is in use and it will not allow you to get rid of it no matter what you try? Well, here's a little trick to help you get around this.
1. Open up terminal and type "sudo nano .bash_profile" and input your administrator password. This will allow you to view and edit this text file. We are going to use this to create an alias.
2. Click inside the terminal window to take control of an active cursor and use your arrow keys to move around. Type alias emptytrash='rm -rf ~/.Trash/*' into the window. Be sure to type the command exactly as shown otherwise you may end up deleting something you didn't intend to.
4. Press the "Control" key plus the "O" key to write the text out to the file and press enter to accept the default file name.
5. Press the "Control" key plus the "X" key to exit.
6. Close the terminal window.
Now any time you run into the issue of being unable to empty your trash due to stuck files, you can just open up terminal and type "emptytrash" and hit enter. Doing so will automatically run the 'rm -rf ~/.Trash/*' command and clean out your trash can for you, regardless of what is in there.
A video tutorial can be found here at the bottom of this tip.
I hope this helps!
Posted by Tim... on
May 11, 2014 | Computers & Internet
Jun 29, 2012 | Apple 13-inch MacBook - Intel 2.0GHz Intel...
Jun 03, 2011 | Computers & Internet
Mar 09, 2011 | Apple Computers & Internet
May 08, 2008 | Archos Jukebox Recorder MP3 Player
820 people viewed this tip
Usually answered in minutes!