Date: Wed, 26 Feb 2003 12:26:05 -0800 From: Steve Warwick <ukla@attbi.com> To: <freebsd-questions@FreeBSD.ORG> Subject: Deleting a soft link that points to a directory - how? Message-ID: <BA8262DD.43E7%ukla@attbi.com>
next in thread | raw e-mail | index | archive | help
Hey All, I cannot seem to delete a soft link (ln -s) that is pointing to a directory without renaming the directory first. If I try to delete the link it complains that the link is a directory (which it is pointing to). If I delete using rm -rf, it deletes the directory that is pointed to but not the link -- I have been burned by that one! FreeBSD 4.3 Here is a little test: %pwd /tmp %mkdir me %cd /root %ln -s /tmp/me MyTmp %rm -f MyTmp/ rm: MyTmp/: is a directory % %rm -rf MyTmp/ (deletes the directory it points to) %rm -f MyTmp (deletes the link) % Help, suggestions, magic? Thanks Steve To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BA8262DD.43E7%ukla>
