Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

1 Answer

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
1  
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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.