Linux

whereis attempts to give the location of the source or binary of any specified program

whereis command Syntax

$ whereis program_name options

Options Description
-b limits search to binaries

whatis command examples

 $ whereis python
/usr/bin/python
 $ whereis git
/usr/bin/git
 $ whereis php
/usr/bin/php
 $ whereis ruby
/usr/bin/ruby
$ whereis whoami -b
/usr/bin/whoami