鸟哥的私房菜笔记之linux中的在线求助

来源:互联网 发布:简单网络拓扑图怎么画 编辑:程序博客网 时间:2024/05/22 09:18

linux中的在线求助方式:man page/ info page

(1)man page:

       查询语法:man   需要查询的命令

      以man free为例,下面为查询结果:

 [root@localhost~]#man free

FREE(1)                       Linux User's Manual                      FREE(1)

NAME
       free - Display amount of free and used memory in the system

SYNOPSIS
       free [-b | -k | -m] [-o] [-s delay ] [-t] [-V]

DESCRIPTION
       free  displays the total amount of free and used physical and swap memory in the system, as well as the buffers used by the kernel.  The shared
       memory column should be ignored; it is obsolete.

   Options
       The -b switch displays the amount of memory in bytes; the -k switch (set by default) displays it in kilobytes; the -m  switch  displays  it  in
       megabytes.

       The -t switch displays a line containing the totals.

       The  -o switch disables the display of a "buffer adjusted" line.  If the -o option is not specified, free subtracts buffer memory from the used
       memory and adds it to the free memory reported.

       The -s switch activates continuous polling delay seconds apart. You may actually specify any floating point number for delay, usleep(3) is used
       for microsecond resolution delay times.

       The -V displays version information.

FILES
       /proc/meminfo-- memory information

SEE ALSO
       ps(1), slabtop(1), vmstat(8), top(1)

AUTHORS
       Written by Brian Edmonds.

       Send bug reports to <albert@users.sf.net>

Cohesive Systems                 20 Mar 1993                           FREE(1)
(END)

注:FREE(1)中的(1)代表一般使用者可以使用的命令,以下为常见的几个数字的意义:

(1)代表一般使用者可以使用的命令;

(2)系统核心可呼叫的函数与工具;

(3)一些常用的函数(function)或函数库(library);

(4)装置档案的说明;

(5)设定档或者是某些档案的格式;

(6)游戏game

(7)惯例与协议等,例如linux标准档案系统、网络协议、ASCII Code等等的说明内容;

(8)系统管理员可用的管理指令;

(9)跟kernel有关的文件。

            man内容的介绍:

NAME:简短的指令、数据名称说明

SYNOPSIS:语法的简介

DESCRIPTION:较完整的说明

FILES:这个程序或数据所使用或参考或连结到的某些档案

SEE ALSO:可以参考的,跟这个指令或数据有相关的其它说明!

EXAMPLE:一些可以参考的范例

          man page 常用的按键   

向下翻一页:空格键/Page Down

向上翻一页:Page Up

Home:到第一页

End:到最后一页

/string:向下搜寻string字符串

?string:向上搜寻string字符串

n:搜寻下一个字符串

N:搜寻上一个字符串

q:退出man  page.

 

(2)info page

   查询语法:info   需要查询的命令

   以info  info为例,下面为查询结果:

 [root@localhost~]#info  info

File: info.info,  Node(显示在第几层): Top,  Next(按n键可以到下一层): 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.

   There are two primary Info readers: `info', a stand-alone program
designed just to read Info files, and the `info' package in GNU Emacs,
a general-purpose editor.  At present, only the Emacs reader supports
using a mouse.

   If you are new to the Info reader and want to learn how to use it,
type the command `h' now.  It brings you to a programmed instruction
sequence.

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

* Menu:分为四个部分如下:光标移动到星号或者文字上,直接按enter就可以看到该节的具体内容了

* 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 --All-------------------------------------------------------------------------------------------------------------------------

Welcome to Info version 4.8. Type(版本) ? for help,m for menu item.(按m后会有更多指令说明)

注:中文字为注释

info  page 常用的按键   

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

0 0
原创粉丝点击