![]() ![]() Hitting ENTER now will delete the file completely. Then I'll drag the file into the Terminal window to get the filepath. Tip: Once I’ve identified the file jamming up Trash, I'll type rm into Terminal, but don’t hit ENTER yet. I don’t want to do that in a directory that contains personal files or system files. ![]() 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. Then delete everything in Trash using this command: rm -rf * Again, change the directory to Trash using the cd command in Terminal from above. If that didn’t work, we’re going to need to try a little harder. ![]() Unlock all of the Trash files in Terminal. Now I'll try to empty the Trash from either the Dock or the Finder menu (Finder > Empty Trash). 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. The first Terminal command to try makes the Trash files editable, hopefully freeing them up to be deleted. Most of us have tried to empty our Trash, only to be brought up short by a file that’s locked or in use. 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. 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. When we're done, you'll be able to tackle any problem the OS X Trash throws your way. 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. In this tutorial, I’ll look at several ways to force the Trash to empty using the command line in Terminal. Even if I identify the problem, it’s not always easy or even possible to fix without a lot of effort. This can be incredibly frustrating, especially if I'm not sure why it’s happening. Just about everybody has tried, at one time or another, to empty their OS X Trash and received an alert that the Trash couldn’t be emptied, usually for an opaque reason that's not well explained. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |