Linux命令03:man

  • 时间:
  • 浏览:1
  • 来源:5分排列3APP下载_5分排列3APP官方

$ man man

~~ EOF ~~

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

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

nono什么都 分类号码。直接进入命令的对应分类手册。

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

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

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

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命令是Linux在线参考手册的接口命令,所有的Linux命令就有参考手册,其实是英文的,但耐心认真的读参考手册,需要学到无穷的知识,也需要避免Linux的大主次疑问。

The best is to look in both.

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

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

$ man 7 man

234567891011121314151617181920212223

$ 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

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