man 命令詳解

Name
man - format and display the on-line manual pages:格式化顯示在線手冊頁
sysnosis
man [-acdDfFhkKtvVwW] [--path] [-m system] [-p string] [-C config_file] [-M pathlist] [-P pager] [-B browser] [-H htmlpager] [-S section_list] [section] name ...
DESCRIPTION:
man formats and displays the on-line manual pages :格式化顯示在線手冊頁
if you specify section, man only looks in that section of the manual:指定章節,man只查看那章
name is of a command,function, or file. 名字是一個命令、功能、或者文件
However ,if name contains a slash (/) then man interprets it as a file specification,so that you can do man ./foo.5 or even man /cd/foo/bar.1.gz :如果name中包含斜槓,man將他解釋爲文件說明,所以,你可以使用man ./foo.5 或者 man /cd/foo/bar.1.gz

see below for description of where man looks for the manual page files
MANUAL SECTIONS:
the standard sections of the manual include:標準的手冊章節包含:
1 user Commands:用戶命令
2 System calls:系統調用
3 C library Functions C庫函數
4 Device and Special Flies :設備和指定文件
5 File Formats and Conventions (配置)文件格式和約定
6 Games et. Al.:遊戲
7 Miscellanea:雜項
8 System Administration tools and daemons 管理類工具(命令)和後臺進程
Distributions customize the manual section to their specifics, which often include additional sections:版本自定義手冊章節到他們不同的細節,他通常包含附加章節
man命令的配置文件:/etc/man.config
幫助手冊中的段落說明:
NAME
SYSNOPSIS
DESCRIPTION
OPTIONS
EXAMPLES
AUTHOR
REPORTING BUGS
SYNOPSIS中的符號表示的意義:
[]:可選內容
<>:必選內容
a|b:二選一
...:同一內容可出現多次
man命令的操作方法:
Space ^f ^F ^V:向文件尾翻屏
b ^B:向文件首部翻屏
d, ^D:向文件尾部翻半屏
u,^U:向文件首部翻半屏
RETRUN or ^N or e or ^E or j or ^J:向文件尾部翻一行
y ^y ^P k ^K:向文件首部翻一行
q:退出
跳轉至的#行:#
1G:回到文件首部
G:跳至文件尾部
文件搜索:
/KEYWORD:
以KEYWORD指定的字符串爲關鍵字,從當前位置向文件尾部搜索,默認不區分字符大小寫
n:下一個
N:上一個
?KEYWORD:
以KEYWORD指定的字符串爲關鍵字,從當前位置向文件首部搜索,不區分大小寫
n:跟搜索命令同方向,下一個
N:跟搜索命令反方向,上一個

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章