Answers:
dman 检索手册页在实践中,通常需要查看软件包的简短描述(如mchid所建议的),以决定是否需要该软件包。但是,如果愿意,可以使用该dman实用程序查看由尚未安装的软件包提供的联机帮助页。
dman被提供由bikeshed 包。您可以将其安装在软件中心或中
sudo apt-get install bikeshed。
然后使用dmanlike man。
dman是一个脚本,可通过Internet检索手册页并显示它们,因此您必须连接到Internet才能成功使用它。(但是您可能会这样做,因为在您的特定情况下,您将要安装软件包。)它通常也运行缓慢,因此请等待几秒钟。
dman没有发布数据库,则可以指定另一个。由于错误 dman,在某些版本的Ubuntu上无法正常工作。现在,您可以通过查看所需的另一版本的联机帮助页来解决该问题(此解决方法由Marius Gedminas在错误报告的评论中建议)。您可以使用代号的形容词组成部分,在所有情况下(例如,precise从12.04精确穿山甲,trusty从14.04忠实的塔尔)。例如:
ek@Io:~$ dman sl       # doesn't work on Vivid, produces no output
ek@Io:~$ dman --release trusty sl
SL(6)                            Games Manual                            SL(6)
NAME
       sl  -  display animations aimed to correct users who accidentally enter
       sl instead of ls.
SYNOPSIS
       sl [ -alFe ]
DESCRIPTION
       sl Displays animations....当然,您也可以简单地浏览Web上的联机帮助页。如果要从命令行执行此操作,则可以使用基于文本的Web浏览器。
如果愿意,您甚至可以在其中定义一个函数,.bashrc以便您有一个命令可以打开基于文本的Web浏览器并搜索作为参数传递的术语:
wman() { links2 "http://manpages.ubuntu.com/cgi-bin/search.py?q=$1"; }为了使该特定功能定义起作用,必须安装links2 软件包。这将导致
wman在每个新创建的交互式shell中自动定义函数,但不会在.bashrc编辑之前启动的shell中自动定义函数(不过,您可以在这些shell中运行函数定义)。
然后,我可以搜索手册页面,并在手册不同部分的页面之间进行选择,无论我喜欢哪个Ubuntu版本的手册版本:
ek@Io:~$ wman chmod
                                            Ubuntu Manpage: Searching (p1 of 2) 
                                 Ubuntu manuals                                 
   _____________________ go                                                     
   +------------------------------------------------------------------------+   
   |  lucid      precise    trusty     utopic     Section Description       |   
   |  10.04 LTS  12.04 LTS  14.04 LTS  14.10                                |   
   |  chmod(1),  chmod(1),  chmod(1),  chmod(1),  (1) - Executable          |   
   |  chmod(1)   chmod(1)   chmod(1)   chmod(1)   programs or shell         |   
   |                                              commands                  |   
   |  chmod(2),  chmod(2),  chmod(2),  chmod(2),  (2) - System calls        |   
   |  chmod(2)   chmod(2)   chmod(2)   chmod(2)   (functions provided by    |   
   |                                              the kernel)               |   
   |                                              (3) - Library calls       |   
   |  chmod(3)   chmod(3)   chmod(3)   chmod(3)   (functions within         |   
   |                                              program libraries)        |   
   |      .          .          .          .      (4) - Special files       |   
   |                                              (usually found in /dev)   |   
   |                                              (5) - File formats and    |   
   |      .          .          .          .      conventions eg            |   
   |                                              /etc/passwd               |   
   |      .          .          .          .      (6) - Games               |   
   |                                              (7) - Miscellaneous       |   
   |      .          .          .          .      (including macro          |   
   |                                              packages and              |   
http://manpages.ubuntu.com/
debman。
                    bikeshed,您还可以安装安装debian-goodies,这将给您dman和您debman
                    debman该手册页作为debian-goodies软件包的一部分)debman -p debian-goodies debman。如果您.deb的计算机上有软件包,则可以使用-foption来查看其手册页,而无需安装该软件包:debman -f debian-goodies_0.79_all.deb debman
                    我建议安装debian-goodies包,这将给你访问dman,debman,debmany,和debget命令,等等。通过以下方式安装:
sudo apt install debian-goodies
dman已经被Eliah Kagan报道了。
现在您知道dman都包含在bikeshed和中debian-goodies。
您可以使用debman从已卸载(未安装)的软件包中读取手册页。
在这些示例中,我想阅读dmanfrom软件包的手册页debian-goodies:
debman -p debian-goodies dman
或者,如果您要阅读特定版本的手册页,请使用:
debman -p debian-goodies=0.79 dman
您还可以.deb使用以下-f选项阅读本地文件的联机帮助页:
debman -f debian-goodies_0.79_all.deb dman
为了清楚起见,这是另一个示例,我想阅读apt-get属于该apt软件包的工具的手册页:
debman -p apt apt-get
因此,您需要知道要阅读的命令的手册页属于哪个软件包。
您可以debget使用喜欢的应用程序下载软件包并手动阅读它们:
debget debian-goodies
手册页和其他文档包含在.deb软件包中,可以在以下位置找到:
debian-goodies_0.79_all.deb\data.tar\usr\share\man
debian-goodies_0.79_all.deb\data.tar\usr\share\doc
或者您可以使用debmany终端查看所有文档:
debmany ./debian-goodies_0.79_all.deb
您也可以将其用于已安装的软件包:
debmany debian-goodies
当我使用Android手机时,有时甚至当我使用Ubuntu时,我也会使用互联网查看手册页。互联网浏览器的另一个好处是可以使用Ctrl+ 轻松搜索F。在浏览器的搜索栏中,您可以输入文字man ls,这是第一次点击:
根据我的观点,如果不安装软件包,则无法阅读文档。当您安装任何特定的软件包时,您可能已经注意到还安装了一些其他文件,其中一个名为“ man-db”或类似名称。
该“ man-db”实际上包含有关该软件包的手册。
但您可以通过以下方式查看该软件包的一些基本详细信息:
apt-cache show <packagename>
man-db只有在安装软件包后才有意义(OP不需要)。
                    
dman是一个非常有用的想法。