Saturday, May 7, 2016

which, whereis & locate

"which" command to find out if a relevant binary is already in your search path. For example: which php

"whereis" searches a broader range of system directories and is independent of your shell's search path.

"locate" consults a precompiled index of the file system to location filenames that match a particular pattern. "locate" can find any type of files as well, and its database is updated periodically by the updatedb command.