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'm using OS X and I see these ~ directories sometime appear my directories. I know Unix and I know that ~ represents the home directory, but these other ~ directories appear elsewhere and they aren't symbolic or hard links either. What's causing this?

share|improve this question

migrated from Oct 3 '10 at 13:42

This question came from our site for professional and enthusiast programmers.

Some example names? Or is the name always just a lone tilde? – JRobert Oct 3 '10 at 14:11
up vote 4 down vote accepted

It seems likely that some app is trying to write files to your home directory, but the programmer has been lazy and used the '~' shorthand in the code, which won't work, instead of /Users/<shortname>.

The thread Mysterious Tilde (~) Folder shows how to delete it, but it comes back later on.

The thread Mysterious Tilde Folder Appeared claims that this directory is created by Apple Software Update.
If that's really the case, then this is simply a bug in Apple software, and there is no way to get rid of it permanently.

share|improve this answer
And the reason the '~' doesn't work in program code is that it's the shell (such as bash) rather than the file system routines that expands the tilde when it's used on the command line. – ak2 Oct 3 '10 at 21:17

You must log in to answer this question.

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