How do I remove a symlink?

前端 未结 6 1692
猫巷女王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条回答
  •  梦毁少年i
    2021-01-30 19:54

    I had a link pointing to a folder with short-name "testproject": you make that with this command

    ln -s /Users/SHERIF/repo/test  testproject
    

    I had to change the folder name to something else for some reasons when I run the command unlink pointing to the old folder directory it didn't work.

    I tried to only unlink testproject to remove the short-name so I can re-use the same name again and link to the newly named folder. it did work fine for me.

提交回复
热议问题