1

linux之man命令

 2 years ago
source link: https://blog.51cto.com/u_12214037/5282861
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

linux之man命令

原创

入门小站 2022-05-08 22:06:50 ©著作权

文章标签 linux 文章分类 其他 其它 阅读数186

man 命令 是 Linux 下的帮助指令,通过 man 指令可以查看 Linux 中的指令帮助、配置文件帮助和编程帮助等信息。

> man(选项)(参数)
-a:在所有的man帮助手册中搜索;
-f:等价于whatis指令,显示给定关键字的简短描述信息;
-P:指定内容时使用分页程序;
-M:指定man手册搜索的路径。
  • 数字:指定从哪本 man 手册中搜索帮助;
  • 关键字:指定要搜索帮助的关键字。

数字代表内容

1:用户在shell环境可操作的命令或执行文件;
2:系统内核可调用的函数与工具等
3:一些常用的函数(function)与函数库(library),大部分为C的函数库(libc)
4:设备文件说明,通常在/dev下的文件
5:配置文件或某些文件格式
6:游戏(games)
7:惯例与协议等,如Linux文件系统,网络协议,ASCII code等说明
8:系统管理员可用的管理命令
9:跟kernel有关的文件

我们输入man ls,它会在最左上角显示LS(1),在这里,LS 表示手册名称,而(1)表示该手册位于第一节章,同样,我们输man ifconfig它会在最左上角显示 IFCONFIG(8)。也可以这样输入命令:man [章节号] 手册名称

man 是按照手册的章节号的顺序进行搜索的,比如

> man sleep

只会显示 sleep 命令的手册, 如果想查看库函数 sleep,就要输入:

> man 3 sleep

原文链接: https://rumenz.com/rumenbiji/linux-man.html
微信公众号:入门小站

  • 回复【1001】获取 linux常用命令速查手册
  • 回复【10010】获取 阿里云ECS运维Linux系统诊断
  • 回复【10012】获取 Linux学习笔记【强悍总结值得一看】
  • 回复【10013】获取 shell简明教程

linux之man命令_linux

  • 收藏
  • 评论
  • 分享
  • 举报

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK