Removing symbol link with too many levels of symbolic links

3

1

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. :(

Spencer

Posted 2012-09-25T15:46:17.937

Reputation: 133

Answers

5

Remove the trailing slash from your command:

sudo rm -r /usr/bin/subl

don_crissti

Posted 2012-09-25T15:46:17.937

Reputation: 2 374