whatis命令是用于查询一个命令执行什么功能,并将查询结果打印到终端上。
whatis命令在用catman -w命令创建的数据库中查找command参数指定的命令、系统调用、库函数或特殊文件名。whatis命令显示手册部分的页眉行。然后可以发出man命令以获取附加的信息。whatis命令等同于使用man -f命令。
#### 语法
whatis
#### 实例
[root@localhost ~]# whatis ls
ls (1) - list directory contents
ls (1p) - list directory contents
[root@localhost ~]# whatis cp
cp (1) - copy files and directories
cp (1p) - copy files
[root@localhost ~]# whatis chown
chown (1) - change file owner and group
chown (1p) - change the file ownership
chown (2) - change ownership of a file
chown (3p) - change owner and group of a file
[root@localhost ~]# whatis man
man (1) - format and display the on-line manual pages
man (1p) - display system documentation
man (7) - macros to format man pages
man (rpm) - A set of documentation tools: man, apropos and whatis.
man-pages (rpm) - Man (manual) pages from the Linux Documentation Project.
man.config [man] (5) - configuration data for man
- 目录
- Linux目录结构
- 文件和目录管理
- 创建文件
- touch命令
- ln命令
- 文件列表
- 查看内容
- ls命令
- ll命令
- stat 命令
- 文件查找
- updatedb命令
- locate/slocate命令
- whereis命令
- which命令
- find命令
- 文件压缩
- tar命令
- 目录管理
- mkdir命令
- pwd命令
- tail命令
- 监视文件
- 文件复制
- cp命令
- 压缩解压
- zip命令
- unzip命令
- 系统管理
- crontab命令
- crontab问题
- crontab日志
- crontab原理
- 系统计划任务
- 用户计划任务
- 调用ThinkPHP控制器
- ntsysv命令
- chkconfig命令
- export命令
- 修改PATH环境变量
- ps命令
- man
- 主要方法
- pstree命令
- service命令
- kill命令
- ulimit命令
- 综合命令
- 编译文件
- make命令
- makefile文件
- 设备管理
- mount命令
- 用户和工作组管理
- groupadd命令
- passwd命令
- useadd命令
- groups命令
- chage命令
- whoami命令
- 查看用户组下所有用户
- 软件安装
- rpm命令
- 系统监测
- free命令
- 硬件配置
- 系统监控
- top命令
- ps_mem
- pstree
- 文件传输
- web服务
- Nginx
- 文件下载
- wget命令
- 系统帮助
- whatis命令
- man命令
- shell命令
- shell变量
- sh命令
- source命令
- test命令
- 表达式
- 逻辑运算符
- date命令
- declare命令
- 软件安装
- yum命令
- 安装
- 系统服务
- systemctl命令
- service
- 环境变量
- Linux 中环境变量设置
- 网络管理
- iptables命令
- netstat命令
- 查看端口占用
- 常用端口说明
- 系统安全
- getenforce
- 磁盘空间
- df命令