whereis+whatis+man
来源:互联网 发布:js获取title属性 编辑:程序博客网 时间:2024/06/06 12:55
使用Linux过程中无论是使用shell命令、程序开发或者用户文档都需要使用到强大的男人man命令。
使用方法也十分简单,以查看ls命令的使用方法为例:
man ls
/usr/local/man/
/usr/share/man/
你可以通过whereis 命令来获取命令或者文档的位置,以搜索ls命令为例:
[root@CentOS6 man8]# whereis lsls: /bin/ls /usr/share/man/man1p/ls.1p.gz /usr/share/man/man1/ls.1.gz
可以看到ls命令的路径,以及在man1p和man1目录下都存在ls的相关文档。
也就是说关于一个命令或者说一个搜索串可能存在多个文档说明,那么我们可以通过whatis来查看有哪些文档(也可以通过 "man -f stat"),以stat为例:
[root@CentOS6 man8]# whatis statstat (1) - display file or file system statusstat (2) - get file statusstat (3p) - get file status
也就是说在man1、man2和man3p目录下都存在关于stat的描述文档,在机器上可以查到,man1目录下的是关于命令stat的用法文档,man2目录下是关于C函数stat的用法。如果我们使用"man stat",则默认打开的是man1中的stat文档。
如果我们需要查看C函数中stat的用法,可以使用以下的命令(注意这里的2对应的是whatis中显示出来的文档位置):
man 2 stat
- whereis+whatis+man
- Linux入门:常用命令:man、which、whereis、whatis、whoami命令帮助
- whereis whatis find locate linux
- 五、Linux常用命令之文件搜索篇(which、whereis、find、locate、grep、man、info、whatis、--help、apropos、help)
- Linux whatis man man: nothing appropriate
- which、whereis、file、whatis平均负载(uptime)
- Linux中的 find、locate、whereis、which、whatis
- Linux 帮助命令 man whatis help info
- 12 Linux Which Command, Whatis Command, Whereis Command Examples
- whatis
- linux下的查看帮助命令:whatis,man
- [Linux]whereis,which, locate, man -f
- Linux入门笔记——cal、date、free、clear、history、man、whatis、uname
- Linux入门笔记——type、switch、help、man、apropos、whatis、info
- Linux学习笔记3 date,help,man,info,whatis,which,clock,hwclock,cal,echo,printf
- LinuxStudyNote(27)-Linux常用命令(4)-帮助命令man,whatis、apropos,--help,info、help,什么是shell
- linux命令之----ls,bc,tab,ctrl+c,ctrl+d,man,info,whatis,apropos,LANG,locale,nano,who,shutdown,fsck
- whereis
- tetet
- git的简单使用
- luaXml库的使用方法
- Emgu CV(OpenCV for C#)学习笔记(3)
- SVN各种错误解决办法
- whereis+whatis+man
- 结构体类型内存分析
- RelativeLayout 常用属性
- 数据库访问技术
- iOS下AsyncSocket网络库编程
- MySQL优化的奇技淫巧之STRAIGHT_JOIN
- Oracal的Lpad函数
- POJ_2262
- 使用valgrind检测Android native程序的内存