也就是说关于一个命令或者说一个搜索串可能存在多个文档说明,那么我们可以通过whatis来查看有哪些文档(也可以通过 "man -f stat"),以stat为例: [plain] view plaincopy...[root@CentOS6 man8]# whatis stat stat (1) - display file or file system status...如果我们需要查看C函数中stat的用法,可以使用以下的命令(注意这里的2对应的是whatis中显示出来的文档位置): [plain] view plaincopy man 2 stat
如果想从现有索引数据库生成旧样式的文本 whatis 数据库,可以使用如下命令: whatis -M -w '*' | sort > /whatis 其中 manpath...2.命令格式 whatis [OPTION...] KEYWORD... whatis 不加任何选项等同于使用 man -f 命令。 3.选项说明 -d, --debug 输出调试信息。...$ whatis whatis whatis (1) - display manual page descriptions (2)使用通配符指定要搜索的名字。...默认情况下,whatis 命令使用 $MANPATH 环境变量。但是 whatis 提供了 -M 或 –manpath 选项来限制搜索手册页的指定路径。...$ whatis -M /usr/share/man whatis whatis (1) - display manual page descriptions ---- 参考文献 whatis
1.命令简介 whatis 显示手册 NAME 一节的简短描述。 每个手册页面都有一个简短的描述。whatis 搜索手册页,显示匹配的手册页中 NAME 一节内容。...如果想从现有索引数据库生成旧样式的文本 whatis 数据库,可以使用如下命令: whatis -M -w '*' | sort > /whatis 其中 manpath...注意,whatis 有个软链名为 apropos,所以也可以使用 apropos 命令。 2.命令格式 whatis [-dlv?...whatis whatis whatis (1) - display manual page descriptions (2)使用通配符指定要搜索的名字。...whatis -M /usr/share/man whatis whatis (1) - display manual page descriptions ---- 参考文献 whatis
man 有两个选项: -f, –whatis Equivalent to whatis....See whatis(1) for details. -k, –apropos Equivalent to apropos....当我们使用的时候,如果没有建立whatis 数据库 就会出现 nothing appropriate 的信息; 我们可以使用 makewhatis 来更新; 当然也可以使用 mandb 命令: mandb
用命令去记住命令 用魔法打败魔法 whatis就是我们今天要学的新命令 顾名思义 whatis 你是干嘛的?...what is可以告我们某条命令是干什么用的 whatis uname 这样就可以让whatis命令告诉我们命令用法 一般结果是英文的 whatis会用最简单的语言形容该命令 whatis就像水晶球一样神奇...其他命令 我们再试试用pwd发出灵魂之问 这次whatis 的参数是 pwd whatis 告诉我们pwd是输出当前工作路径 whatis pwd 我们再试试 cat 使用方向键⬆️重复上一命令...使用ctrl️+w 退格一格单词 在输入 cat 这样我们就得到了 whatis cat cat是合并输出到屏幕(标准输出流) whatis cat 灵魂发问 问问whatis whatis...whatis whatis说我是显示在线手册说明的 whatis 可以发出灵魂之问 但是whatis稍微有点简略 能否更详细的查询命令呢?
详细手册 回忆上节课 我们上节课学习了使用命令来了解命令 whatis 我们通过他来发出灵魂之问 whatis到底是干什么的?...whatis whatis 但是,whatis只是简单介绍,有没有更详细的介绍呢?
查看某条命令或程序的帮助手册manual man使用技巧: /keyword 搜索关键字 n 向下查找 N 向上查找 q 退出 /usr/share/doc 存放所有应用程序的文档(帮助、模板) whatis...相当于man -f,查看与此命令或程序相关的手册 whatis comm 在whatis索引库中搜寻特定命令comm(匹配名称) apropos name 在whatis索引库中搜寻含name关键字的信息
在.bashrc中(/home/.bashrc)增加如下一行: echo "Did you know that:"; whatis $(ls /bin | shuf -n 1) 你只需要增加这行就够了...-f1) $(whatis $(ls /bin) 2>/dev/null | shuf -n 1) 然而,上述使用cowsay的方法并不是在所有Linux发行版下均可运行成功。...二,使用“whatis” 如果你不喜欢学习随机的命令,或许你喜欢在使用某种命令的时候学习它的用法。这时你只需要在其前面加上whatis即可。Whatis会逐条的解释你输入的命令。...上图的whatis sudo yum install cheese例子清楚的告诉你:1)sudo是让你具有管理员权限;2)yun是软件包管理器;3)install是让YUM安装软件包;4)cheese是你打算安装的软件
Contents 1 概述 2 帮助命令 2.1 使用 whatis 2.2 使用 man 2.3 查看路径 which 2.4 总结 3 参考资料 概述 Linux 命令及其参数繁多,大多数人都是无法记住全部功能和具体参数意思的...需要知道某个命令的简要说明,可以使用 whatis;而更详细的介绍,则可用 info 命令; 在只记得部分命令关键字的场合,我们可通过 man -k 来搜索; 查看命令在哪个位置,我们需要使用 which...; 而对于命令的具体参数及使用方法,我们需要用到强大的 man ; 帮助命令 使用 whatis 使用方法如下: $ whatis ls # 查看 ls 命令的简要说明 ls (1)...总结 本文总共讲解了 whatis info man which whereis 五个帮助命令的使用,Linux 命令的熟练使用需要我们在项目中多加实践、思考和总结。 参考资料 《Linux基础》
撰文编辑:逻辑熊猫 | 图片:截图 欢迎朋友圈各种姿势的分享 如需转载,请后台联系授权 你会看到:help、man、info、whatis - 奇正式开始 - ▼ -01- help | 不是万能的...2.之前我们已经学过了man,现在来使用man info: 3.如果直接使用info或者使用info info: -04- whatis | 是什么 1.概述: whatis命令,用来显示手册页说明。...2.直接使用whatis: 没有任何意义! 3.使用whatis whatis: 4.举个例子: 在man那一节中,我们说过,man手册的类型。...那么这里包含一个1和一个7,whatis会把这这些都打印出来。 又如: 和man一节对比一下,这里正好有个类型 3。...今天内容: help man info whatis 逻辑熊猫 ?
System.out.println(i); 16. } Whatis the result? A. 6 B. 7 C. 10 D. 11 E....System.out.println(o); 14. } 15. } Whatis the result?...A a = new SubB2(); 14. a.foo(); 15. } 16. } Whatis the result? A. B B....new Boxer1(new Integer(4)); 10. } 11. } Whatis the result? A....System.out.println(pq.poll() + " " + pq.peek()); 10. } 11. } Whatis the result? A.
whatis command_name for example $ whatis watch watch(1) - execute a program periodically, showing
ls命令的帮助信息 man services 查看配置文件services的帮助信息 帮助指令:info 语法:info[任何关键字] 功能描述:获得帮助信息{unix中没有这个命令} 帮助命令:whatis...whatis whatis 指令名称:whatis apropos makewhatis search the whatis database for strings 语法:whatis
回忆上次内容 上次讲了灵魂三问✊ whatis whereis which 通过这三个问题,可以对命令基本了解,我们来试一下!!...清屏 我们这次的命令clear很简单 clear作用是清屏 下面我对他提出灵魂三问 whatis clear whereis clear which clear 这样我们就可以对clear有个基本了解
man [命令或配置文件] 范例:$ man ls 26.帮助命令 info(information) 功能描述:获得帮助信息 语法:man [任何关键字] 范例:$ info ls 25.帮助命令 whatis...(search the whatis database for strings) 功能描述:获得索引的简短说明信息 语法:whatis apropos[任何关键字] 范例:$ whatis ls $ apropos...fstab 相当于 man -k ### makewhatis 建立whatis和apropos搜索使用的数据库,当使用这两个命令发生错误时,就是数据库没有建立 原文转自【Java知音】公众号
我们来玩吧 各种命令都来当which的参数 which pwd which uname which whatis which whereis 现在我们有了三个灵魂之问了✊ whatis 你是谁 whereis...灵魂三问 我们来对cat命令,试试这个灵魂三问 whatis cat whereis cat which cat 有了这三个命令 我们就可以了解任何命令的基本信息了!
((TestA)new TestB()).start(); 8. } 9. } Whatis the result? A. TestA B. TestB C....System.out.println("NullPointerException"); 20. } 21. } Whatis the result? A. test B....System.out.print(obj + ", "); 20. } Whatis the result? A. 3, 2, 1, B. 1, 2, 3, C....System.out.print("3 "); 22. } 23. } Whatis the result?...System.out.println(pq.poll() + " " + pq.peek()); 10. } 11. } Whatis the result? A.
在显示的内容中查找内容: / + 搜索你的关键字 上下左右键来查看更多说明,按q退出 man -f man(查找man完整名称的手册) man -k man(模糊查询含有man名称的手册) whatis...[命令或数据] <==相当于 man -f [命令或数据] apropos [命令或数据] <==相当于 man -k [命令或数据] 上面的这两个命令要使用用,需要root创建whatis数据库才行
man 和 whatis 共用一个索引库的。...我们使用 man whatis 进行查看: index databases are used during the search, and are updated by the mandb...To produce an old style text whatis database from the relative index database, issue
1. whereis / which / whatis whereis可以寻找可能相关的文件,也可以是二进制文件: whereis ls 会返回: ls: /bin/ls /usr/share/man.../man1/ls.1.gz 而which则会返回命令: which ls 返回: /bin/ls whatis命令显示包含指定内容的命令的简单描述。
领取专属 10元无门槛券
手把手带您无忧上云