What is the Unix command to create a hardlink to a directory in OS X?

前端 未结 14 1405
天涯浪人
天涯浪人 2020-12-02 05:32

How do you create a hardlink (as opposed to a symlink or a Mac OS alias) in OS X that points to a directory? I already know the command \"ln target destination\" but that on

14条回答
  •  抹茶落季
    2020-12-02 05:59

    Yes it's supported by the kernel and the filesystem, but since it's not intended for general usage it's not exposed to the shell.

    You could probably work out which APIs Time Machine uses and wrap them in a commandline tool, but it'd be better to take the hint and steer well-clear.

提交回复
热议问题