Search
The whereis command
Locates the binary, the source code and the manual pages of a command.
Syntax
whereis comandoMost useful options
-bOnly the binary-mOnly the manual pagesCopy-ready examples
$ whereis lsWhere ls livesYou can try them in the browser terminal: it does not touch your computer.
Typical mistakes
- whereis searches known paths; if the program is somewhere unusual it will not see it. For that use which.
FAQ
Difference from which?
which tells which executable would run; whereis also gives the manual and source.
Learn to actually use it
The basic Linux course takes you from zero to console fluency with 24 self-grading lessons.
Start the free course