
To delete a symlink, invoke the rm command followed by the symbolic link name as an argument: rm symlink_name Remove Symbolic Links with rm #Ĭommand removes given files and directories. The “->” symbol shows the file the symlink points to. The first character “l”, indicates that the file is a symlink. ls -l /usr/bin/python lrwxrwxrwx 1 root root 9 /usr/bin/python -> python2.7 When you remove a symlink, the file it points to is not affected.Ĭommand to check whether a given file is a symbolic link, and to find the file or directory that symbolic link point to. Otherwise, you will get “Operation not permitted” error. To remove a symlink, you need to have writing permissions on the directory that contains the symlink.

In this guide, we will show you how to remove (delete) symbolic links in Linux/UNIX systems using the rm, unlink, and find commands. How to Link a Folder in HTML - Using Absolute and Relative Path Names
