The whereis command allows you to search for the location of programs that are not contained within any of the directories listed in the $PATH variable.
$ whereis ifconfig
ifconfig: /sbin/ifconfig /usr/share/man/man8/ifconfig.8.gz
Whereis Command
The whereis command allows you to search for the location of programs that are not contained within any of the directories listed in the $PATH variable.
$ whereis ifconfig
ifconfig: /sbin/ifconfig /usr/share/man/man8/ifconfig.8.gz