温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

man 命令详解

发布时间:2020-02-27 06:32:03 来源:网络 阅读:173 作者:wx5a1f8d23790cb 栏目:系统运维

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:跟搜索命令反方向,上一个

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI