How do I remove a symlink?

前端 未结 6 1754
猫巷女王i
猫巷女王i 2021-01-30 19:27

i just created the symlink sudo ln -s /usr/local/mysql/lib/libmysqlclient.18.dylib /usr/lib/libmysqlclient.18.dylib and am wondering how i get rid of it if I wanted

6条回答
  •  青春惊慌失措
    2021-01-30 19:49

    Remove it just like you would any other file: rm /usr/lib/libmysqlclient.18.dylib. rm will remove the symlink itself, not the file the link is pointing at.

提交回复
热议问题