Linux手册指南
本文最后更新于:2022年9月4日 下午
man手册
man 手册提供了极佳的快速查询功能,当我们不熟悉某个指令的时候,可以通过在命令行输入 man + command 查询在线手册
- section类别
- 由数字标识,具体如下:
1:可执行的程式或是shell 指令。
2:系统呼叫(system calls,Linux 核心所提供的函数)。
3:一般函式库函数。
4:特殊档案(通常位于/dev)。
5:档案格式与协定,如 /etc/passwd
6:游戏。
7:杂项(巨集等,如man(7)、groff(7))。
8:系统管理者指令(通常是管理者 root 专用的)。
9:Kernel routines(非标准)。 man num command
指定查看num标识的命令man -aw command
查看命令有几个section列表
- 由数字标识,具体如下:
man -k command
可以帮助我们线上搜索所有相关内容,并且附带对应的简要说明- man手册中文翻译版
tldr
对于某些命令,man 的内容实在太多,比如,我们输入 man gcc | wc -l
来统计gcc的man手册行数,结果有19991行,这太多了,因此我们需要一个精简版的man指令,它就是tldr
tldr
是"too long; didn’tread"
的缩写,旨在显示简单版的命令文档,并提供常用命令示例,它是github上一个开源项目
一键安装:
1 |
|
当我们输入tldr curl
,得到如下输出:
1 |
|
同时,该项目还提供了网页版:tldr.ostera.io 在线查询
Linux上一些其它参考
help
、info
命令- Linux参考手册
- 一个中文版本的Linux函数解释
- https://cplusplus.com/
- apue
- uulp
Linux手册指南
http://gls.show/p/50b51ea9/