Problem scenario
You are using the "which" command. You only get one result. How does Linux choose the result when the file exists in two directories in the $PATH variable?
Solution
Run this command to see every directory in the $PATH variable:
echo $PATH
The "which" command evaluates from left to right and will return the first match found.