coreutils: unlink invocation
1
1 12.8 ‘unlink’: Remove files via the unlink syscall
1 ==================================================
1
1 ‘unlink’ deletes a single specified file name. It is a minimalist
11 interface to the system-provided ‘unlink’ function. ⇒
(libc)Deleting Files. Synopsis: It avoids the bells and whistles of
1 the more commonly-used ‘rm’ command (⇒rm invocation).
1
1 unlink FILENAME
1
1 On some systems ‘unlink’ can be used to delete the name of a
1 directory. On others, it can be used that way only by a privileged
1 user. In the GNU system ‘unlink’ can never delete the name of a
1 directory.
1
1 The ‘unlink’ command honors the ‘--help’ and ‘--version’ options. To
1 remove a file whose name begins with ‘-’, prefix the name with ‘./’,
1 e.g., ‘unlink ./--help’.
1
1 An exit status of zero indicates success, and a nonzero value
1 indicates failure.
1