Solved: How to remove a symbolic link to a directory
Posted: Wed Jun 05, 2013 6:35 pm
Hi,
I want to delete a symbolic link to a directory
Put it doesn't work with rm
Even forcing it:
I don't want to do rm -fr,
because it might delete everything in the directory,
and I don't want that.
Even tried "unlink"
Doesn't work either
I want to delete a symbolic link to a directory
Put it doesn't work with rm
Code: Select all
rm DIR/
rm: cannot remove 'DIR/': Is a directory
Code: Select all
rm -f DIR/
rm: cannot remove 'DIR/': Is a directory
because it might delete everything in the directory,
and I don't want that.
Even tried "unlink"
Code: Select all
unlink DIR/
unlink: cannot unlink 'DIR/': Not a directory