O'Reilly logo

SAMS Teach Yourself Unix in 10 Minutes by Robert Shimonski

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The whereis Command

The whereis command can be used to run a quick search on a specific number of directories for whatever you specify. For example, if you wanted to run a search on a file named “test”, then you would get all instances of “test” that came up within that preset number of directories, such as paths to source code, binaries, and man pages. The whereis command performs a quick search for the file you specify.

>whereis test
test: /usr/bin/test /usr/share/man/man1/test.1.gz /usr/share/man/man1p/test.1p.gz

Although this may not be exactly what you are looking for, this command can be useful.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required