info
瑞兹 发表于 2021-01-24 13:39浏览次数:
在类似Unix的操作系统上,info命令读取由Free Software Foundation开发的以info格式存储的文档。
On Unix-like operating systems, the info command reads documentation stored in the info format, developed by the Free Software Foundation.
目录:
1 info 运行系统环境
2 info 描述
3 info 语法
4 info 例子
info 运行系统环境
info 描述
info格式与man相似,即传统的Unix手动格式。信息还提供了一种将页面链接在一起的健壮结构,类似于超链接。信息页面是使用texinfo工具制作的,通常可以与其他页面链接,创建菜单并简化导航。
信息文档的默认位置是/ usr / share / info。
The info format is similar to that of man, the traditional Unix manual format. Info additionally provides a robust structure for linking pages together, similar to hyperlinks. Info pages are made using the texinfo tools, and can link with other pages, create menus and ease navigation in general.
The default location of info documentation is /usr/share/info.
info 语法
info [OPTION]... [MENU-ITEM...]
选件
|
-k,-- apropos = STRING
|
在所有手册的所有索引中查找STRING。
|
|
-d,-- directory = DIR
|
将DIR添加到INFOPATH中。
|
|
--dribble =FILENAME
|
记住FILENAME中的用户击键。
|
|
-f,-- file =FILENAME
|
指定要访问的信息文件。
|
|
-h,--help
|
显示此帮助并退出。
|
|
--index-search = STRING
|
转到索引条目STRING指向的节点。
|
|
-n,-- node = NODENAME
|
在第一个访问的Info文件中指定节点。
|
|
-o,-- output =FILENAME
|
将选定的节点输出到FILENAME。
|
|
-R,-- raw-escapes
|
输出“原始” ANSI转义符(默认值)。
|
|
--no-raw-escapes
|
输出转义为文字文本。
|
|
--restore = FILENAME
|
从FILENAME读取初始击键。
|
|
-O,-- show -options,-usage
|
转到命令行选项节点。
|
|
--subnodes
|
递归输出菜单项。
|
|
--vi-keys
|
使用类似vi和不太相似的键绑定。
|
|
--version
|
显示版本信息并退出。
|
|
-w,--where,--location
|
打印信息文件的物理位置。
|
MENU-OPTION(如果存在)是要从其开始的菜单项;在INFOPATH的所有'dir'文件中搜索它。如果不存在,info会合并所有“ dir”文件并显示结果。其余所有自变量均被视为相对于访问的初始节点的菜单项的名称。
有关键绑定的摘要,请在info内输入h。
info [OPTION]... [MENU-ITEM...]
Options
|
-k, --apropos=STRING
|
look up STRING in all indices of all manuals.
|
|
-d, --directory=DIR
|
add DIR to INFOPATH.
|
|
--dribble=FILENAME
|
remember user keystrokes in FILENAME.
|
|
-f, --file=FILENAME
|
specify Info file to visit.
|
|
-h, --help
|
display this help and exit.
|
|
--index-search=STRING
|
go to node pointed by index entry STRING.
|
|
-n, --node=NODENAME
|
specify nodes in first visited Info file.
|
|
-o, --output=FILENAME
|
output selected nodes to FILENAME.
|
|
-R, --raw-escapes
|
output "raw" ANSI escapes (default).
|
|
--no-raw-escapes
|
output escapes as literal text.
|
|
--restore=FILENAME
|
read initial keystrokes from FILENAME.
|
|
-O, --show-options, --usage
|
go to command-line options node.
|
|
--subnodes
|
recursively output menu items.
|
|
--vi-keys
|
use vi-like and less-like key bindings.
|
|
--version
|
display version information and exit.
|
|
-w, --where, --location
|
print physical location of Info file.
|
MENU-OPTION, if present, is the menu entry to start from; it is searched for in all 'dir' files along INFOPATH. If it is not present, info merges all 'dir' files and shows the result. Any remaining arguments are treated as the names of menu items relative to the initial node visited.
For a summary of key bindings, type h within info.
info 例子
info emacs
从顶级目录开始于emacs节点。
info --show-options emacs
从带有emacs命令行选项的节点开始
info -f ./foo.info
显示文件./foo.info,不搜索目录
info
显示顶级信息页面。
info --subnodes -o all-vi-info.txt vi
将有关vi命令的所有信息以及信息的任何子节点输出到文件all-vi-info.txt。
info emacs
Start at emacs node from top-level dir.
info --show-options emacs
start at node with emacs command line options
info -f ./foo.info
show file ./foo.info, not searching dir
info
Shows the top-level info page.
info --subnodes -o all-vi-info.txt vi
Output all information on the vi command, with any subnodes of information, to the file all-vi-info.txt.
未知的网友