Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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 noticed there is a folder titled "~" - no quotes, in my home directory. If I delete it, it instantly reappears. Why is this there and how can I make it go away?

share|improve this question
So this time I deleted it and it stayed gone. I'd still like to know what could have been causing it. – Insperatus Jul 10 '12 at 16:30
up vote 2 down vote accepted

Next time you can run lsof | grep /home/**yourusername**/~ and see what process is creating the file or has it open.

share|improve this answer
Or just lsof /home/yourusername/\~. (Also, ~ is only expanded when it's at the beginning of a path. So the `` is not necessary.) – Eliah Kagan Jul 10 '12 at 16:45
I never knew that, thanks Elijah! – mfisch Jul 10 '12 at 18:51
I'm marking this solved because if the directory reappears you will have solved at least one half of my question. Thank you – Insperatus Jul 11 '12 at 3:57
@mfisch So the "~" folder reappeared in /home the other day but I didn't notice it right away. I tried both the suggested commands but neither gave any output. Is this possibly because the process or file that created the folder is no longer running? – Insperatus Aug 15 '12 at 22:47
Yes, I think that's why you had no output. Is it getting created on login perhaps? Can you narrow that down based on the creation time? Also, are there any files in the directory that will help explain why it's being created? – mfisch Aug 17 '12 at 16:55

Your Answer


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.