您可能知道,在使用 Linux 命令时,您可以使用
whatis
命令获取该命令功能的简短描述。例如:
$ whatis mkdir
mkdir (1) - make directories
mkdir (2) - create a directory
我想知道是否有某种方法可以使用
whatis
命令描述全局安装的 Composer 包。
假设我已经全局安装了
laravel/vapor
,并且我想输入 whatis vapor
并查看适当的结果。/usr/bin
目录中,但我想知道是否有一种方法可以通过 whatis
命令来描述它们。
正如
whatis
的手册页中所述:
姓名
whatis - display one-line manual page descriptions
...
描述
Each manual page has a short description available within it. whatis searches the manual page names and displays the manual page descriptions of any name matched.
因此,如果
laravel
中的软件包带有手册页,您应该能够使用 whatis
看到它们,否则您不应该看到它们。