Linux命令帮助

1、命令一般格式

COMMAND  [ OPTION ]  ARGUMENT

2、常见命令

[ifconfig](http://blog.51cto.com/2857034/2161663)

3、查询命令是否为内置命令

> type COMMAND

  >type find

find is /usr/bin/find

>type cd

  cd is a shell builtin

>type echo

echo is a shell builtin

4、查询命令帮助

内置命令:

help  COMMAND

> help echo

外置命令:

COMMAND --help

>find --help

info信息页:

>info echo

>info find

man手册页:

默认搜索路径:/usr/share/man ,有9个section组成

  各section作用:

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、查询COMMAND手册页section位置

>whatis find

find (1)            - search for files in a directory hierarchy

>whatis echo

echo (1)            - display a line of text

2、查询对应手册页帮助

man  [section]  COMMAND

man  1  find

man  1  echo

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容