I have this situation in which the same command/program (eg: myScript) is present in two locations, /usr/bin
and /usr/local/bin
. Both these locations are in the PATH.
When I run
$ myScript
- How do I know from which location myScript will be picked up?
- Can I force the use of one of the locations (without having to delete myScript from one of the locations)?