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.

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

1 Answer 1

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