When I run python from the shell I for example do
I later need to find this command again based on the
ps aux output, however this output shows a full absolute path like this:
I am unsure how I can resolve
python2.7 to the path above. I tried to install realpath (brew install coreutils), and ran
realpath `which python2.7`, however that is not giving the exact same path, it gives:
I also tried
python -c "import os; print os.path.realpath('/usr/bin/python2.7')" but that gives the same different path.
Why the difference and is there any way I can resolve to the other path ?