I created a symbolic link (yesterday) like this:
sudo ln -s bin/python /usr/bin/prj-python
When I run:
prj-python file.py
I get:
prj-python: command not found
When I try creating the link again, I get:
ln: creating symbolic link `/usr/bin/prj-python': File exists
Why is that happening? My $PATH
is:
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/opt/real/RealPlayer
Best Answer
You forgot the initial slash before
bin/python
. This means/usr/bin/prj-python
now points to/usr/bin/bin/python
. What would you like it to point to exactly?