Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I had a problem in Lion where empty trash would just sit there. In Terminal I ran the command sudo rm ~rf ~/.Trash/* But an error message says that 'filename' is a directory. How can I get rid of this from the trash?

share|improve this question

Correct your command:

rm -rf ~/.Trash/*

Use the minus sign "-" in front of "rf", since the options to the most commands are given with the minus sign "-", not with the tilde sign "~". The tilde sign "~" represents your home directory, that's why ~/.Trash is translated to the .Trash sub-directory in your home folder.

I intentionally skipped the "sudo" from your command, since you do not need root permissions to delete your own user's files. It is dangerous to use sudo if you do not know where it's needed.

share|improve this answer
Thanks and a big oops on my part using the ~ instead of - in front of rf. I've now successfully emptied the trash. – Rusty D Jun 25 '12 at 23:11

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .