HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

unlink — Remove a link to a file from the filesystem. The file contents is lost if the link is the last one t

Submitted by: @import:tldr-pages··
0
Viewed 0 times
thecommandlinkremovefromclifileunlink

Problem

How to use the unlink command: Remove a link to a file from the filesystem. The file contents is lost if the link is the last one to the file. More information: <https://www.gnu.org/software/coreutils/manual/html_node/unlink-invocation.html>.

Solution

unlink — Remove a link to a file from the filesystem. The file contents is lost if the link is the last one to the file. More information: <https://www.gnu.org/software/coreutils/manual/html_node/unlink-invocation.html>.

Remove the specified file if it is the last link:
unlink {{path/to/file}}

Code Snippets

Remove the specified file if it is the last link

unlink {{path/to/file}}

Context

tldr-pages: common/unlink

Revisions (0)

No revisions yet.