whereis command is used to locate the path of the command’s binary program, source code file, and
man page and other related files. Its search speed is very fast, because it does not search in the disk, but queries in a database, which is automatically created by the
linux system and contains information about all local files.
Syntax format: whereis [parameter] [command name]
# 只显示二进制文件的路径whereis -b ls
This article is reprinted from https://xugaoxiang.com/2022/06/16/linux-cmds-57-whereis/
This site is for inclusion only, and the copyright belongs to the original author.