centos安裝man3

 常用法:

man [section] name

其中section指明手冊中的哪一部分,若未指明,則從1開始一次查找,直到找到一個爲止。

重點留意:

    1 --- 命令

    2 --- 系統調用

    3 --- 庫函數

The table below shows the section numbers of  the  manual  followed  by  the
       types of pages they contain.

       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]

我使用的阿里雲centos 7服務器,使用man的時候發現只有section 1

進行man安裝

yum install -y man man-pages

注意:單獨安裝依然無效,無法查詢有些函數(eg: man 2 stat)

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章