Linux Commands - unlink

by
Jeremy Canfield |
Updated: June 20 2024
| Linux Commands articles
Let's say the ln command was used to create a symblic link.
ln -s /usr/local/nodejs/node-v20.10.0-linux-x64/bin/node /usr/bin/node
The ls (list) command with the -l (long) flag can be used to see that /usr/bin/node is symbolically linked to /usr/local/nodejs/node-v20.10.0-linux-x64/bin/node in this example.
~]# ls -l /usr/bin/node
lrwxrwxrwx. 1 root root 183 May 23 18:53 /usr/bin/node -> /usr/local/nodejs/node-v20.10.0-linux-x64/bin/node
The unlink command can be used to remove the symbolic link.
unlink /usr/bin/node
Did you find this article helpful?
If so, consider buying me a coffee over at