02 搜索命令

1 whereis

命令含义

  • 命令名称:whereis
  • 英文原意:locate the binary,source,and manual page files for a command
  • 所在路径:/usr/bin/whereis
  • 执行权限:所有用户
  • 功能描述:查找二进制命令、源文件和帮助文档的命令

命令格式

whereis [选项] 命令

命令选项

选项 含义
-b 只查找二进制命令
-m 查找帮助文档

2 which

命令含义

  • 命令名称:which
  • 英文原意:shows the full path of (shell) commands
  • 所在路径:/usr/bin/which
  • 执行权限:所有用户
  • 功能描述:列出命令的所在路径,显示路径的别名或完整路径

命令格式

which 命令

results matching ""

    No results matching ""