How to create Soft Link (Symlink) and Hard Link in Linux
In this post I will show you simple steps to unlink the symlink
Suppose you have a link as shown below
# ls -l
drwxr-xr-x. 2 root root 4096 Sep 12 13:55 Desktop
lrwxrwxrwx 1 root root 7 Jan 10 23:34 shortcut -> Desktop
Here shortcut is a symlink for Desktop
NOTE: Always remember you have to remove the shortcut link which is created and not the original directory.
# rm shortcut
NOTE: symlink is the one which you will see in blue colour
# unlink shortcut/
unlink: cannot unlink `shortcut/': Not a directory
Why am I getting this error?
# unlink shortcut