TIL that the `which` command has a flag, `-a`, which shows all possible places from which a command might be found, e.g.,
$ which -a python
/opt/homebrew/opt/python3/libexec/bin/python
/usr/local/bin/python
/Users/willf/.local/bin/python
$ which -a python
/opt/homebrew/opt/python3/libexec/bin/python
/usr/local/bin/python
/Users/willf/.local/bin/python
Comments