For users who are not comfortable doing that, though, I’ll also use a dead simple app that will get rid of any problem files or folders in the Trash. When we're done, you'll be able to tackle any problem the OS X Trash throws your way. While most of this tutorial deals with Terminal commands to solve Trash problems, Trash It! is a nice app for getting the same job done without using the command line. If you're not comfortable in Terminal or just don't want to go to the trouble of entering the individual commands, Trash It! may be your solution, and we'll briefly walk through it at the end. Most of us have tried to empty our Trash, only to be brought up short by a file that’s locked or in use. The first Terminal command to try makes the Trash files editable, hopefully freeing them up to be deleted. Once in the Trash, I'll paste the following into Terminal and hit ENTER: chflags -R nouchg * I'll open Terminal, and get into the Trash directory by entering the following: cd ~/.Trash I've got locked Trash files, but I don't know which they are. Now I'll try to empty the Trash from either the Dock or the Finder menu (Finder > Empty Trash). Unlock all of the Trash files in Terminal. If that didn’t work, we’re going to need to try a little harder. Then delete everything in Trash using this command: rm -rf * Again, change the directory to Trash using the cd command in Terminal from above. I’ll want to be absolutely sure I'm in my Trash directory for that command, because it’s going to burn the fields and salt the earth, taking all of my files with it. I don’t want to do that in a directory that contains personal files or system files. Tip: Once I’ve identified the file jamming up Trash, I'll type rm into Terminal, but don’t hit ENTER yet. Then I'll drag the file into the Terminal window to get the filepath. Hitting ENTER now will delete the file completely.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |