I accidentally typed:
sudo ln -sf /usr/local/bin/python2.5/ /usr/bin/python
instead of:
sudo ln -sf /usr/local/bin/python2.5 /usr/bin/python
Now bash tells me that /usr/bin/python is not a directory whenever I run python.
ls -l /usr/bin/python gives me expectedly /usr/bin/python --> /usr/local/bin/python2.5/
Is there any safe way to remove that symbolic link to a directory (that does not exist) and replace it with a link to the intended file?
Arigato in advance if you have any ideas.
I am stuck....