LInux 的man

1、man的分页
————原文说明———
The table below shows the section numbers of the manual followed by the types of pages they contain.
       1   Executable programs or shell commands
       2   System calls (functions provided by the kernel)
       3   Library calls (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 conven‐
           tions), e.g. man(7), groff(7)
       8   System administration commands (usually only for root)
       9   Kernel routines [Non standard]
       A manual page consists of several sections.
————
也就是说1是可执行程序和shell命令,2是由内核提供的系统调用函数,3是由程序库提供的库函数,4是(一般在/dev里的)特殊文件,5是文件格式与约定,6是游戏,7是杂项(包括宏包和约定等),8是系统管理命令(需要root权限),9是内核例程
所以当查询如mkdir,rmdir等函数与命令重名的时候,可以使用如#man 2 rmdir形式的方式来查询函数。
2、man的附加参数
  -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, --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[=浏览器]     使用  或指定浏览器显示 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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值