Files
uTools-Manuals/docs/linux/whatis.html
T
fofolee 38dcd51d8a v0.0.2
2019-04-21 11:50:48 +08:00

31 lines
1.7 KiB
HTML

<h1 id="whatis">whatis</h1>
<p>查询一个命令执行什么功能</p>
<h2 id="补充说明">补充说明</h2>
<p><strong>whatis命令</strong> 是用于查询一个命令执行什么功能,并将查询结果打印到终端上。</p>
<p>whatis命令在用<code>catman -w</code>命令创建的数据库中查找command参数指定的命令、系统调用、库函数或特殊文件名。whatis命令显示手册部分的页眉行。然后可以发出man命令以获取附加的信息。whatis命令等同于使用<code>man -f</code>命令。</p>
<h3 id="语法">语法</h3>
<pre><code class="language-bash">whatis</code></pre>
<h3 id="实例">实例</h3>
<pre><code class="language-bash">[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</code></pre>
<!-- Linux命令行搜索引擎:https://jaywcjlove.github.io/linux-command/ -->