You are here: >

Linux and Unix unlink command

unlink commandAbout unlink
unlink syntax
unlink examples
Related commands
Linux and Unix main page

About unlink

The unlink command calls and directly interfaces with the unlink system function, which removes a specified file.

unlink syntax

unlink FILE
unlink OPTION

Options

--help Display a help message and exit.
--version Output version information and exit.

unlink examples

unlink hope.txt

Removes the filename hope.txt, and if there is no other hard link to the file data, the file data itself is removed from the system.

link — Create a hard link to a regular file.