Linux学习笔记:使用help documents/manuals

Linux帮助文档

man page

man command: enter the reference manual of command
man 1 man: enter the section 1 of man to refer to specified information of man
man number command: enter the section number of files related to command

man is the abbrevation of the on-line reference manuals, called man page

man man: refer to the reference manual of man page
man -f command: refer to files related to command

whatis command

man -k keyword: refer to files related to commands including keyword

apropos command

  • The codes of commands in reference mannuals
    1 使用者在shell环境中可以操作的命令或可运行文件
    2 系统核心可呼叫的函数与工具等
    3 一些常用的函数(function)与函式库(library),大部分为C的函式库(libc)
    4 装置文件的说明,通常在/dev下的文件
    5 配置文件或者是某些文件的格式
    6 游戏(games)
    7 惯例与协议等,例如Linux文件系统、网络协议、ASCII code等等的说明
    8 系统管理员可用的管理命令
    9 跟kernel有关的文件

  • Some keyboard shortcuts in man page
    空格键 向下翻一页
    [Page Down][SPACE] 向下翻一页(fn+down)
    [Page Up] 向上翻一页(fn+up)
    [Home] 去到第一页(fn+left)
    [End] 去到最后一页(fn+right)
    /string 向『下』搜寻 string 这个字符串,如果要搜寻 vbird 的话,就输入 /vbird
    ?string 向『上』搜寻 string 这个字符串
    n, N 利用 / 或 ? 来搜寻字符串时,可以用 n 来继续下一个搜寻 (不论是 / 或 ?) ,可以利用 N 来进行『反向』搜寻。举例来说,我以 /vbird 搜寻 vbird 字符串, 那么可以 n 继续往下查询,用 N 往上查询。若以 ?vbird 向上查询 vbird 字符串, 那我可以用 n 继续『向上』查询,用 N 反向查询。
    q 结束这次的 man page

info page

A specific information page displayed in format of web text page. Each distinct page is called a node

  • click n as Next, p as Previous, u as Up
  • Some keypads in info page
    空格键 向下翻一页
    [Page Down][SPACE] 向下翻一页
    [Page Up] 向上翻一页
    [tab] 在 node 之间移动,有 node 的地方,通常会以 * 显示。
    [Enter] 当光标在 node 上面时,按下 Enter 可以进入该 node。
    b 移动光标到该 info 画面当中的第一个 node 处
    e 移动光标到该 info 画面当中的最后一个 node 处
    n 前往下一个 node 处
    p 前往上一个 node 处
    u 向上移动一层
    s(/) 在 info page 当中进行搜寻
    h 显示求助菜单
    ? 命令一览表
    q 结束这次的 info page

Info is generally more specified than man

document

Enter /usr/share/doc to refer to some documents of some services or programs

all help documents

  • man command
  • info command
  • /usr/share/doc
  • help command
  • command --help
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值