{
    "mode": "info",
    "parameter": "unlink",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/info/unlink/json",
    "generated": "2026-07-26T23:57:23Z",
    "sections": {
        "File: coreutils.info,  Node: unlink invocation,  Prev: rmdir invocation,  Up: Special file types": {
            "content": "",
            "subsections": [
                {
                    "name": "12.8 'unlink': Remove files via the unlink syscall",
                    "content": "'unlink' deletes a single specified file name.  It is a minimalist\ninterface to the system-provided 'unlink' function.  *Note\n(libc)Deleting Files::.  Synopsis: It avoids the bells and whistles of\nthe more commonly-used 'rm' command (*note rm invocation::).\n\nunlink FILENAME\n\nOn some systems 'unlink' can be used to delete the name of a\ndirectory.  On others, it can be used that way only by a privileged\nuser.  In the GNU system 'unlink' can never delete the name of a\ndirectory.\n\nThe 'unlink' command honors the '--help' and '--version' options.  To\nremove a file whose name begins with '-', prefix the name with './',\ne.g., 'unlink ./--help'.\n\nAn exit status of zero indicates success, and a nonzero value\nindicates failure.\n"
                }
            ]
        }
    },
    "flags": [],
    "examples": [],
    "see_also": []
}