Linux unlink command

Updated: 05/04/2019 by Computer Hope
unlink command

On Unix-like operating systems, the unlink command calls and directly interfaces with the unlink system function, which removes a specified file.

This page covers the GNU/Linux version of unlink.


unlink FILE
unlink OPTION


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


unlink hope.txt

Removes the file name 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.