Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

How can I create a hardlinked directory loop on a mac? I just want to do it for fun haha I discovered the concept on xkcd.

share|improve this question

I'm not on a device where I can quote the man page, but as I recall, it warns against trying to hard link directories, only lets root try to create them, and warns that the filesystem might not even support it. If you still really want to try, look at the man page for the appropriate option.

Here's the relevant option:

-d, -F, --directory
       allow the superuser to attempt to hard link  directories  (note:
       will  probably  fail  due  to  system restrictions, even for the
share|improve this answer
Mac OS X supports directory hardlinks (for Time Machine), but will probably refuse to create loops. – grawity Nov 24 '11 at 9:52

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.