man
Usage: man [OPTION...] [章节] 手册页...
 -C, --config-file=文件 使用该用户设置文件
 -d, --debug 输出调试信息
 -D, --default 将所有选项都重置为默认值
 --warnings[=警告] 开启 groff 的警告
主要运行模式:
 -f, --whatis 等同于 whatis
 -k, --apropos 等同于 apropos
 -K, --global-apropos search for text in all pages
 -l, --local-file
 把“手册页”参数当成本地文件名来解读
 -w, --where, --path, --location
 输出手册页的物理位置
 -W, --where-cat, --location-cat
 输出 cat 文件的物理位置
 -c, --catman 由 catman 使用,用来对过时的 cat
 页重新排版
 -R, --recode=编码 output source page encoded in ENCODING
寻找手册页:
 -L, --locale=区域
 定义本次手册页搜索所采用的区域设置
 -m, --systems=系统 use manual pages from other systems
 -M, --manpath=路径 设置搜索手册页的路径为“路径”
-S, -s, --sections=列表 使用以半角冒号分隔的章节列表
 -e, --extension=扩展
 将搜索限制在扩展类型为“扩展”的手册页之内
 -i, --ignore-case 查找手册页时不区分大小写字母
 (默认)
 -I, --match-case 查找手册页时区分大小写字母。
 --regex show all pages matching regex
 --wildcard show all pages matching wildcard
 --names-only make --regex and --wildcard match page names only,
 not descriptions
 -a, --all 寻找所有匹配的手册页
 -u, --update 强制进行缓存一致性的检查
 --no-subpages don't try subpages, e.g. 'man foo bar' => 'man
 foo-bar'
控制格式化的输出:
 -P, --pager=PAGER 使用 PAGER 程序显示输出文本
 -r, --prompt=字符串 给 less pager 提供一个提示行
 -7, --ascii 显示某些 latin1 字符的 ASCII 翻译形式
 -E, --encoding=编码 use selected output encoding
 --no-hyphenation, --nh turn off hyphenation
 --no-justification, --nj turn off justification
 -p, --preprocessor=字符串 字符串表示要运行哪些预处理器:
 e-[n]eqn, p-pic, t-tbl,
g-grap, r-refer, v-vgrind
 -t, --troff 使用 groff 对手册页排版
 -T, --troff-device[=设备] 使用 groff 的指定设备
 -H, --html[=浏览器] 使用 www-browser 或指定浏览器显示 HTML
 输出
 -X, --gxditview[=分辨率] 使用 groff 并通过 gxditview (X11)
 来显示:
 -X = -TX75, -X100 = -TX100, -X100-12 = -TX100-12
 -Z, --ditroff 使用 groff 并强制它生成 ditroff
 -?, --help give this help list
 --usage give a short usage message
 -V, --version print program version
例:
[root@linux ~]# man ifconfig #查看ifconfig手册
info
用法: info [OPTION]... [MENU-ITEM...]
以 Info 格式阅读文档。
选项:
 -k, --apropos=STRING 在所有手册页的索引中查找 STRING。
 -d, --directory=DIR 将 DIR 添加至 INFOPATH。
 --dribble=FILENAME 将用户的击键条目在 FILENAME 中。
 -f, --file=FILENAME 指定想浏览的 Info 文件。
 -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 和 less 的按键绑定。
 --version 显示版本信息并退出。
 -w, --where, --location 打印 Info 文件在系统中的位置。
如果存在第一个非选项参数,它将是个用于起始的菜单条目;
所有在 INFOPATH 变量后跟着的“dir”文件都会搜索此条目。
如果不存在此参数,info 合并所有“dir”文件并显示结果。
任何后续参数都被认为是与初始浏览
节点有关的菜单项名称。
在帮助信息中按 h 获取有关按键绑定的内容。
范例:
 info 显示顶级目录菜单
 info info 显示 Info readers 的普通手册
 info info-stnd 显示此 Info 程序特定手册
 info emacs 从顶级目录浏览 emacs 节点
 info emacs buffers 在 emacs 手册页中浏览 buffers 节点
 info --show-options emacs 浏览与 emacs 的命令行选项有关的节点
 info --subnodes -o out.txt emacs 将整个手册页输出至 out.txt
 info -f ./foo.info 显示文件 ./foo.info,而不是查找目录
例:
[root@linux ~]# info ifconfig #查看ifconfig手册