One problem that comes up at least two times a day for me is the inability to empty my trash in OS X. I’m sure you’ve seen the dialog before telling you that an item in your trash cannot be deleted, you can either stop or continue emptying the trash.
This is terribly frustrating for people like me, who hate having items just sitting in the trash, if I know something is in there, I empty it. But, when you know for a fact that the file isn’t being accessed by any application, there is a solution.
Just copy and paste the following command into Terminal and your trash will be emptied — no dialog boxes — just instant removal of anything in your trash.
rm -rf ~/.Trash/*
Just make sure that there isn’t anything in the trash that you’d like to see again because once this command is entered, it is gone.