If I have two executable files with the same name on $PATH, how does Ubuntu decide which one to use when it is run in the terminal?
For example, my Ubuntu originally had python installed at /usr/bin/python. Recently, I installed Anaconda's distribution of python, which has its own binary installed at /home/karnivaurus/anaconda/bin/python. Then, in my .bashrc file, I entered:
So both binaries are now on PATH. But if I run python in the terminal, it always uses the original installation, rather than Anaconda's version. Why is this?