Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1711732
  • 博文数量: 143
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 1462
  • 用 户 组: 普通用户
  • 注册时间: 2016-08-23 11:14
文章分类

全部博文(143)

文章存档

2022年(3)

2021年(13)

2020年(21)

2019年(8)

2018年(28)

2017年(7)

2016年(63)

我的朋友

分类: LINUX

2020-10-12 13:51:12

man 和 --help 区别
系统中会有单独的man文件,命令
man term
等同于
less [manpath] /term.x[.gz]    //x为1-8中的数,视term而定
就是说,如果系统没有安装对应man文件,哪怕term命令完全正常,man term都没结果(同样,只要安装了man文件,哪怕没term命令,也可以得到一大堆东西)。
而--help参数将会显示可执行程序自带的信息,这些信息是嵌入到程序本身的(所以--help信息较简短)。
From:

man 的使用
man -f command  #精确匹配command帮助信息列表
man -k command  #模糊匹配command帮助信息列表
man 5 command   #定位5的command帮助信息
From: Linux man 命令详细介绍
上面命令中的数字,其实表示该文档所属的分类(节),序号与分类的对应关系为:

点击(此处)折叠或打开

  1. 1    可执行程序或Shell命令
  2. 2    系统调用(内核提供的函数)
  3. 3    由库提供的库函数调用
  4. 4    特殊文件(多现于/dev)
  5. 5    文件格式,如配置文件格式
  6. 6    游戏
  7. 7    杂项,如man 7 man
  8. 8    系统管理工具
  9. 9    Kernel routines [Non standard] ??
From: man的使用参数
原文:

点击(此处)折叠或打开

  1. Executable programs or shell commands(标准命令)
  2. System calls (functions provided by the kernel)(系统调用)
  3. Library calls (functions within program libraries)(库函数)
  4. Special files (usually found in /dev)(设备说明)
  5. File formats and conventions eg /etc/passwd(文件格式)
  6. Games (游戏和娱乐)
  7. Miscellaneous (including macro packages and conventions), e.g. man(7), groff(7)(杂项)
  8. System administration commands (usually only for root)(管理员命令)
  9. Kernel routines Non standard
From: help、man和info工具的区别
阅读(6570) | 评论(0) | 转发(0) |
0

上一篇:printf 16进制 64bit

下一篇:git

给主人留下些什么吧!~~