macOS / binaries /

which

/usr/bin/which
Locate a program file in the user's path

The which utility takes a list of command names and searches the path for each executable file that would be run had these commands actually been invoked.

source: man