文章标题

来源:互联网 发布:淘宝账号违规怎么解封 编辑:程序博客网 时间:2024/06/13 00:08
    Linux系统的在线求助man page与info page    1.man page        操作:man date        结果输出:        [vbird@www ~]$ LANG="en" 

[vbird@www ~]$ LANG=”en”

[vbird@www ~]$ man date
DATE(1) User Commands DATE(1)

请注意上面这个括号内的数字

NAME <==这个命令的完整全名,如下所示为date且说明简单用途为配置与显示日期/时间
date - print or set the system date and time

SYNOPSIS <==这个命令的基本语法如下所示
date [OPTION]… [+FORMAT]
date [-u|–utc|–universal] [MMDDhhmm[[CC]YY][.ss]]

DESCRIPTION <==详细说明刚刚语法谈到的选项与参数的用法
Display the current time in the given FORMAT, or set the system
date.

   -d, --date=STRING  <==左边-d为短选项名称,右边--date为完整选项名称           display time described by STRING, not 'now'    -f, --file=DATEFILE           like --date once for each line of DATEFILE    -r, --reference=FILE           display the last modification time of FILE 

….(中间省略)….
# 找到了!底下就是格式化输出的详细数据!
FORMAT controls the output. The only valid option for the second
form specifies Coordinated Universal Time. Interpreted sequences
are:

   %%     a literal %    %a     locale's abbreviated weekday name (e.g., Sun)    %A     locale's full weekday name (e.g., Sunday) 

….(中间省略)….
ENVIRONMENT <==与这个命令相关的环境参数有如下的说明
TZ Specifies the timezone, unless overridden by command line
parameters. If neither is specified, the setting from
/etc/localtime is used.

AUTHOR <==这个命令的作者啦!
Written by David MacKenzie.

REPORTING BUGS <==有问题请留言给底下的email的意思!
Report bugs to bug-coreutils@gnu.org.

COPYRIGHT <==受到著作权法的保护!用的就是 GPL 了!
Copyright ? 2006 Free Software Foundation, Inc.
This is free software. You may redistribute copies of it under the
terms of the GNU General Public License
http://www.gnu.org/licenses/gpl.html. There is NO WARRANTY, to
the extent permitted by law.

SEE ALSO <==这个重要,你还可以从哪里查到与date相关的说明文件之意
The full documentation for date is maintained as a Texinfo manual.
If the info and date programs are properly installed at your site,
the command

          info date    should give you access to the complete manual. 

date 5.97 May 2006 DATE(1)
2.man Page 常用按键

按键  进行工作空格键 向下翻一页[Page Down] 向下翻一页[Page Up]   向上翻一页[Home]  去到第一页[End]   去到最后一页    /string 向『下』搜寻 string 这个字符串,如果要搜寻 vbird 的话,就输入 /vbird?string 向『上』搜寻 string 这个字符串        n, N    利用 / 或 ? 来搜寻字符串时,可以用 n 来继续下一个搜寻 (不论是 / 或 ?) ,可以利用 N 来进行『反向』搜寻。举例来说,我以 /vbird 搜寻 vbird 字符串, 那么可以 n 继续往下查询,用 N 往上查询。若以 ?vbird 向上查询 vbird 字符串, 那我可以用 n 继续『向上』查询,用 N 反向查询。q   结束这次的 man page3.搜寻特定命令/文件的man page说明文件    第一种:main -f main    [vbird@www ~]$ man -f man 

man (1) - format and display the on-line manual pages
man (7) - macros to format man pages
man.config [man] (5) - configuration data for man
第二种:main -k man 利用关键字来查询

[vbird@www ~]$ man -k man
. [builtins] (1) - bash built-in commands, see bash(1)
.TP 15 php [php] (1) - PHP Command Line Interface ‘CLI’
….(中间省略)….
zshall (1) - the Z shell meta-man page
zshbuiltins (1) - zsh built-in commands
zshzle (1) - zsh command line editor
4.info page
是将文件数据拆成一个一个的段落,每个段落用自己的页面来撰写, 并且在各个页面中还有类似网页的『超链接』来跳到各不同的页面中,每个独立的页面也被称为一个节点(node)

[vbird@www ~]$ info info
File: info.info, Node: Top, Next: Getting Started, Up: (dir)

Info: An Introduction


The GNU Project distributes most of its on-line manuals in the “Info
format”, which you read using an “Info reader”. You are probably using
an Info reader to read this now.

….(中间省略)….

To read about expert-level Info commands, type n' twice. This
brings you to
Info for Experts’, skipping over the `Getting Started’
chapter.
* Menu:

  • Getting Started:: Getting started using an Info reader.
  • Expert Info:: Info commands for experts.
  • Creating an Info File:: How to make your own Info file.
  • Index:: An index of topics, commands, and variables.

–zz-Info: (info.info.gz)Top, 29 lines –Top——————————
Welcome to Info version 4.8. Type ? for help, m for menu item.
File:代表这个info page的数据是来自info.info文件所提供的;
Node:代表目前的这个页面是属于Top节点。 意思是info.info内含有很多信息,而Top仅是info.info文件内的一个节点内容而已;
Next:下一个节点的名称为Getting Started,你也可以按『N』到下个节点去;
Up:回到上一层的节点总揽画面,你也可以按下『U』回到上一层;
Prev:前一个节点。但由于Top是info.info的第一个节点,所以上面没有前一个节点的信息。
从第一行你可以知道这个节点的内容、来源与相关链接的信息。更有用的信息是,你可以透过直接按下N, P, U来去到下一个、上一个与上一层的节点(node)!非常的方便! 第一行之后就是针对这个节点的说明。在上表的范例中,第二行以后的说明就是针对info.info内的Top这个节点所做的。

再来,你也会看到有『Menu』那个咚咚吧!底下共分为四小节,分别是Getting Started等等的,我们可以使用上下左右按键来将光标移动到该文字或者『 * 』上面,按下Enter, 就可以前往该小节了!另外,也可以按下[Tab]按键,就可以快速的将光标在上表的画面中的node间移动, 真的是非常的方便好用。如果将info.info内的各个节点串在一起并绘制成图表的话,情况有点像底下这样:
按键 进行工作
空格键 向下翻一页
[Page Down] 向下翻一页
[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