0

Linux常用命令-57:whereis

 1 year ago
source link: https://xugaoxiang.com/2022/06/16/linux-cmds-57-whereis/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

whereis 命令用来定位命令的二进制程序、源代码文件和 man 手册页等相关文件的路径。它的查找速度非常快,因为它不是在磁盘中查找,而是在一个数据库中查询,这个数据库是 linux 系统自动创建的,包含有本地所有文件的信息。

语法格式:whereis [参数] [命令名]

常用参数:

ca53385983890915.png
whereis ls

64f485ba1b73ce53.png

# 只显示二进制文件的路径
whereis -b ls

7ce5c91b505b64e2.png


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK