Search a file with whereis and find — The Cheat Sheet Linux

Welcome to the Cheat Sheet Linux. Today, let’s see how to search the file with whereis and find.

whereis

whereis <OPTIONS> <FILENAME> displays the command name, the path in PATH, and associated documentation page. whereis displays more information than which.

The arguments are :

  • -b: searches only executables,
  • -m: searches only man pages,
  • -s: search only source files,

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Bruno Delb

Bruno Delb

Blockchains, DevOps, Agile Coaching, development, testing, Cloud, Management 3.0, ITIL. It defines me.