{
    "mode": "info",
    "parameter": "link",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/info/link/json",
    "generated": "2026-07-26T08:56:41Z",
    "sections": {
        "File: coreutils.info,  Node: link invocation,  Next: ln invocation,  Up: Special file types": {
            "content": "",
            "subsections": [
                {
                    "name": "12.1 'link': Make a hard link via the link syscall",
                    "content": "'link' creates a single hard link at a time.  It is a minimalist\ninterface to the system-provided 'link' function.  *Note (libc)Hard"
                }
            ]
        },
        "Links::.  It avoids the bells and whistles of the more commonly-used": {
            "content": "'ln' command (*note ln invocation::).  Synopsis:\n\nlink FILENAME LINKNAME\n\nFILENAME must specify an existing file, and LINKNAME must specify a\nnonexistent entry in an existing directory.  'link' simply calls 'link\n(FILENAME, LINKNAME)' to create the link.\n\nOn a GNU system, this command acts like 'ln --directory\n--no-target-directory FILENAME LINKNAME'.  However, the '--directory'\nand '--no-target-directory' options are not specified by POSIX, and the\n'link' command is more portable in practice.\n\nIf FILENAME is a symbolic link, it is unspecified whether LINKNAME\nwill be a hard link to the symbolic link or to the target of the\nsymbolic link.  Use 'ln -P' or 'ln -L' to specify which behavior is\ndesired.\n\nAn exit status of zero indicates success, and a nonzero value\nindicates failure.\n",
            "subsections": []
        }
    },
    "flags": [],
    "examples": [],
    "see_also": []
}