linux man

man

man是manual命令的简写,上学时学过为手动的用手的意思,这是名词为说明书的意思

man man # 使用这个命令可以查看man的使用方法

以下为man的描述

DESCRIPTION
man is the system’s manual pager. Each page argument given to man is normally the name of a program, utility or function.
The manual page associated with each of these arguments is then found and displayed.
A section, if provided, will direct man to look only in that section of the manual.
The default action is to search in all of the available sections following a pre-defined order (“1 n l 8 3 2 3posix 3pm 3perl 5 4 9 6 7” by default, unless overridden by the SECTION directive in /etc/manpath.config), and to show only the first page found, even if page exists in several sections.

中文:

  1. man命令是系统说明书的页面,man中的每个页面都是常用的程序、工具或方法的名字
  2. 然后找到并显示与每个参数相关的页面
  3. 如果有section的话,man会只看section的页面
  4. 默认是搜索所有可用的页面

man的命令类型

seqcontent_econtent_cexample
1Executable programs or shell commands常用的系统命令man top
2System calls (functions provided by the kernel)系统调用man 2 write
3Library calls (functions within program libraries)man 3 printf
4Special files (usually found in /dev)特殊文件,也就是/dev下的各种设备文件
5File formats and conventions eg /etc/passwd文件的格式,比如passwd, 就会说明这个文件中各个字段的含义man 5 passwd
6Games
7Miscellaneous (including macro packages and conventions), e.g. man(7), groff(7)其他命令man 7 environ
8System administration commands (usually only for root)only rootman 8 ifconfig

因为有些命令在很多page都有,比如write等,那么想要查询指定的页面命令必须加上页面号

sections

   Conventional  section  names  include NAME, SYNOPSIS, CONFIGURATION, DESCRIPTION, OPTIONS, EXIT STATUS, RETURN VALUE, ERRORS, ENVIRONMENT, FILES, VERSIONS, CON-FORMING TO, NOTES, BUGS, EXAMPLE, AUTHORS, and SEE ALSO.
namecontent
NAME命令名称
SYNOPSIS简介
CONFIGURATION配置
DESCRIPTION描述
OPTIONS参数
EXIT STATUS
RETURN VALUE返回值
ERRORS
ENVIRONMENT
FILES
VERSIONS
CONFORMING TO
NOTES
BUGS
EXAMPLE实例
AUTHORS作者
SEE ALSO其他

ref

ref1

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值