Delete a Symbolic Link to a Directory
Mar.13, 2008 in
Linux
Most people using Linux know how to create a symbolic link to a file or directory:
ln -s /path/to/original/file /path/to/sym/link
Removing a symbolic link to a file is pretty easy too:
rm /path/to/sym/link
But, this doesn’t work for symbolic links that point to a directory, as I just learned (something new every day). This is how you remove a symbolic link to a directory:
unlink /path/to/sym/link
Nice little nugget of geekery for you.








Leave a Reply