Manpage logo

unlink - remove a file

NAME  SYNOPSIS  DESCRIPTION  OPTIONS  EXIT STATUS  AUTHOR  COPYRIGHT 

NAME

unlink − remove a file

SYNOPSIS

unlink [−−] file

DESCRIPTION

A single file is removed by calling the unlink function. If the argument is a symbolic link, the link is removed instead of the file it refers to. It is not possible to remove a directory with this program.

OPTIONS

None.

EXIT STATUS

This command exits 0 if the named file was removed successfully. If an error occurs, unlink exits with a value >0.

AUTHOR

Written by Michael Mikonos.

COPYRIGHT

Copyright (c) 2023 Michael Mikonos.

This code is licensed under the Artistic License 2.


Updated 2026-06-01 - jenkler.se | uex.se