gnu-which

GNU implementation of the which utility to locate commands

brewmacoslinux
Try with needOr install directly
Source

About

GNU implementation of which utility

Commands

which

Examples

Find the full path of a command$ which ls
Locate all instances of a command in PATH$ which -a python
Check if a command exists and is executable$ which git && echo 'Git is installed'