help
说明: 简单的 使用方法和参数介绍
格式:
命令 -h
命令 --help
注意: 有些不支持"-h"来获取帮助信息, 但支持 "--help"
示例
[wuqinfei@wuqinfei ~]$ cat -h
cat: invalid option -- 'h'
Try `cat --help' for more information.
[wuqinfei@wuqinfei ~]$ cat --help
Usage: cat [OPTION]... [FILE]...
Concatenate FILE(s), or standard input, to standard output.
-A, --show-all equivalent to -vET
-b, --number-nonblank number nonempty output lines
-e equivalent to -vE
-E, --show-ends display $ at end of each line
-n, --number number all output lines
-s, --squeeze-blank suppress repeated empty output lines
-t equivalent to -vT
-T, --show-tabs display TAB characters as ^I
-u (ignored)
-v, --show-nonprinting use ^ and M- notation, except for LFD and TAB
--help display this help and exit
--version output version information and exit
With no FILE, or when FILE is -, read standard input.
Examples:
cat f - g Output f's contents, then standard input, then g's contents.
cat Copy standard input to standard output.
man
说明: 获取详细的帮助文档信息
帮助文档支持的类型
$ man 1 cat
1 : 用户命令.
2 : 内核系统调用
3 : 库函数
4 : 特殊文件和设备
5 : 文件格式和规范.
6 : 游戏
7 : 规范 标准 和 其他页面
8 : 系统管理命令
9 : Linux内核API
关键字查询
说明: 显示包含该关键字的命令的说明
格式: man -k 关键字
示例
[wuqinfei@wuqinfei ~]$ man -k who
at.allow [at] (5) - determine who can submit jobs via at or batch
at.deny [at] (5) - determine who can submit jobs via at or batch
rwho_selinux (8) - Security Enhanced Linux Policy for the rwho processes
w (1) - Show who is logged on and what they are doing
who (1) - show who is logged on
who (1p) - display who is on the system
whoami (1) - print effective userid
info
说明: 与 man 类似, 但更为详细
补充: 进入 man 或 info 的帮助查看界面, 可使用 "/关键字"
进行查找, 类似于VIM中的查找
doc
说明:
很多程序及命令带有的详细文档 以 txt html pdf等格式 保存于 /usr/share/doc
示例
[wuqinfei@wuqinfei ~]$ cd /usr/share/doc/
[wuqinfei@wuqinfei doc]$ ls ./zip-3.0/
algorith.txt CHANGES LICENSE README README.CR TODO WHATSNEW WHERE
[wuqinfei@wuqinfei doc]$ less ./zip-3.0/README