symbolic links which are difficult to remove

symbolic links which are difficult to remove

From time to time, I’ve had trouble removing a symbolic link.  I’d
get this:

# rm nz.freebsd.org.old
rm: nz.freebsd.org.old/: is a directory

I was told to use the full path.  Which I did.  And it worked:

# rm /www/nz.freebsd.org.old

I’m also told that this should also work:

# rm ./nz.freebsd.org.old

Go figure.

3 thoughts on “symbolic links which are difficult to remove”

      1. Yes, you are right. I think I wanted to say:

        And if you try ‘rm -r’ you should not add the slash, then you can also remove the symlink only.

        Example:

        rm -r nz.freebsd.org.old

        With FreeBSD 6.1 also the ‘rm nz.freebsd.org.old’ works as expected.

        [%sig%]

Leave a Comment

Scroll to Top