Linux man 命令

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

[root@test ~]# man man
...
摘自centos7
       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]
...

中文翻译:

1 用户命令,可由任何人启动的
2 系统调用,即由内核提供的函数
3 例程,即库函数
4 特别文件(设备),即/dev目录下的特殊文件
5 文件格式描述,例如/etc/passwd
6 游戏
7 杂项,例如宏命令包、惯例约定等
8 系统管理命令,只能由root启动
9 内核例程(非标准化Linux特定的),用来存放内核例行程序的文档
n 新文档, 可能要移到更适合的领域
o 老文档, 可能会在一段期限内保留
l 本地文档, 与本特定系统有关的

举例,查看 crontab 更多用法:

[root@test ~]# man crontab
[root@test ~]# man 5 crontab
...
截取部分
EXTENSIONS
       These special time specification "nicknames" which replace the 5 initial time and date fields, and are prefixed with the '@' character, are supported:
       @reboot    :    Run once after reboot.
       @yearly    :    Run once a year, ie.  "0 0 1 1 *".
       @annually  :    Run once a year, ie.  "0 0 1 1 *".
       @monthly   :    Run once a month, ie. "0 0 1 * *".
       @weekly    :    Run once a week, ie.  "0 0 * * 0".
       @daily     :    Run once a day, ie.   "0 0 * * *".
       @hourly    :    Run once an hour, ie. "0 * * * *".

...
Author: thinkwei

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注