I created a link by the command

 sudo ln -s /etc/Sublime\ Text/ /usr/bin/subl

Now I am trying to remove it with

sudo rm -r /usr/bin/subl/

But it is telling me

rm: cannot remove `/usr/bin/subl': Too many levels of symbolic links

I have tried -rf but that didn't help. :(


Remove the trailing slash from your command:

sudo rm -r /usr/bin/subl

Your Answer

By clicking "Post Your Answer", you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.