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

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
       superuser)
share|improve this answer
1  
Mac OS X supports directory hardlinks (for Time Machine), but will probably refuse to create loops. – grawity Nov 24 '11 at 9:52

You must log in to answer this question.

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