Today I wanted to run
ss -tpla command to see network connections, to my surprize I got
error: unknown option -t. Then I checked location of
~$ whereis ss ss: /bin/ss /usr/local/bin/ss /usr/share/man/man8/ss.8.gz
As you see I have two
ss commands, one in
/bin/ss and the other in
I might have installed another application with the same name from source code into
/usr/local/bin/ss. I don't remember when and usage of it but it's not the command I want to run. Strange thing is that when I run
it redirects the command to
I can run actual
ss command with
/bin has the priority over other paths.
My question is what determines priorities of system paths and how I can override them.