I accidentally created a link to a folder in the same directory with the same name as the folder, and I'm not sure how to safely remove it without removing the actual folder.
# ls -l
total 4
lrwxrwxrwx 1 root root 26 Oct 8 19:36 monbodb-linux-x86_64-2.0.2 -> monbodb-linux-x86_64-2.0.2
lrwxrwxrwx 1 root root 27 May 23 14:58 mongo -> mongodb-linux-x86_64-2.0.2/
drwxr-xr-x 4 root root 4096 Oct 8 19:37 mongodb-linux-x86_64-2.0.2
If I try to unlink, I get the following, which is why I'm concerned about trying to rm it:
# unlink mongodb-linux-x86_64-2.0.2
unlink: cannot unlink `mongodb-linux-x86_64-2.0.2': Is a directory
How can I specify the symbolic link so that I only delete it and not the folder?