溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

man 命令詳解

發(fā)布時間:2020-02-27 06:32:03 來源:網(wǎng)絡 閱讀:190 作者:wx5a1f8d23790cb 欄目:系統(tǒng)運維

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:指定章節(jié),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:標準的手冊章節(jié)包含:
1 user Commands:用戶命令
2 System calls:系統(tǒng)調(diào)用
3 C library Functions C庫函數(shù)
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:版本自定義手冊章節(jié)到他們不同的細節(jié),他通常包含附加章節(jié)
man命令的配置文件:/etc/man.config
幫助手冊中的段落說明:
NAME
SYSNOPSIS
DESCRIPTION
OPTIONS
EXAMPLES
AUTHOR
REPORTING BUGS
SYNOPSIS中的符號表示的意義:
[]:可選內(nèi)容
<>:必選內(nèi)容
a|b:二選一
...:同一內(nèi)容可出現(xiàn)多次
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:退出
跳轉(zhuǎn)至的#行:#
1G:回到文件首部
G:跳至文件尾部
文件搜索:
/KEYWORD:
以KEYWORD指定的字符串為關(guān)鍵字,從當前位置向文件尾部搜索,默認不區(qū)分字符大小寫
n:下一個
N:上一個
?KEYWORD:
以KEYWORD指定的字符串為關(guān)鍵字,從當前位置向文件首部搜索,不區(qū)分大小寫
n:跟搜索命令同方向,下一個
N:跟搜索命令反方向,上一個

向AI問一下細節(jié)

免責聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI