
Donald W. answered 03/25/22
Senior Software Engineer with over 25 years of industry experience
The command is 'which'. Here's the description from the man page for which:
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.