While I was trying to compile a C shared object library, I accidentally created two symbolic links which point to each other. Is there a way to get rid of them without nuking the whole directory? I read that the only way to break a symbolic link is to delete the file it points to, but I'm sure there must be another way. Thanks for the help.
It's not a problem to delete symbolic links. I'm not sure why you think that you need to delete the file the link points to.
Just delete them. Try this:
ln -s thing1 thing2 # thing1 does not exist
ln -s thing2 thing1 # circular reference
rm thing1 thing2 # no problem
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다