Linux命令03:man

  • 时间:
  • 浏览:1
  • 来源:uu快3手机版ios_uu快3app邀请码_在线官网

-f:按照全版全名查找手册。实在,是调用whatis命令,用全版名查询whatis数据库。

-k:查询匹配的手册。实在,是调用apropos命令,用字符串匹配whatis数据库。

nono却说分类号码。直接进入命令的对应分类手册。

The best is to look in both.

234567891011121314151617181920212223

man命令是Linux在线参考手册的接口命令,所有的Linux命令全版都会参考手册,实在是英文的,但耐心认真的读参考手册,都能能学到无穷的知识,都能能能正确处理Linux的大要素间题。

Basically, the linux manuals are documentation of the commands/APIs from their writers; The POSIX manuals are from the POSIX standard. Usually, the “normal” ones are shorter and terser, but deal with the specific implementation; the POSIX ones are longer and more detailed (see man 3p read), but only tell what is in the standard.

$ man -k printf asprintf (3) - print to allocated stringdprintf (3) - print to a file descriptorfprintf (3) - formatted output conversionfprintf (3p) - print formatted outputfwprintf (3) - formatted wide-character output conversionfwprintf (3p) - print formatted wide-character outputldns_buffer_printf (3) - (unknown subject)printf (1) - format and print dataprintf (1p) - write formatted outputprintf (3) - formatted output conversionprintf (3p) - print formatted output...... wprintf (3p) - print formatted wide-character output

关于Linux Programmer’s Manual和POSIX Programmer’s Manual的区别,也却说如33p的区别,见此。

$ man 7 man

注意man命令实在是调用的less命令显示whatis数据库的内容,很多man的按键和less的按键是一样的,而less的命令和vim阅读模式的光标移动的按键是一样的。学了vim后,所有按键都会统一。

CentOS6.6的/etc/man.confman的配置文档,MANSECT参数都能能设置显示分类的顺序。

CentOS7对应的是/etc/man_db.conf,参数是SECTION

man (7) - macros to format man pagesman (1) - an interface to the on-line reference manualsman (1p) - display system documentation

最常用的是1用户命令,3(p)库函数,7惯例和协议。

~~ EOF ~~

$ man man