whereis

Locate the binary, source, and manual page files for a command. More information: https://manned.org/whereis.

whereis ssh

whereis -bm ls

whereis -s gcc -m git

whereis -b -B /usr/bin/ -f gcc

whereis -u *

whereis -u -m *