Ubuntu手册页模糊性

Ubuntu手册页模糊性,ubuntu,manpage,Ubuntu,Manpage,有些C函数的名称与Ubuntu命令不明确,例如:getopt。如何查看这些函数的手册页?毫无疑问,它在互联网上很容易获得,但我希望尽可能不离开终端。man 3 getopt提供了c函数信息 其中asman1getopt或mangetopt给出命令信息。 页面通常使用符号“name(section)”:例如,ftp(1)。当系统调用、用户命令或宏包的名称重合时,同一页面名称可能出现在手册的多个章节中。man 3 getopt显示了C getopt的手册页 请参见man-manman-wa geto

有些C函数的名称与Ubuntu命令不明确,例如:getopt。如何查看这些函数的手册页?毫无疑问,它在互联网上很容易获得,但我希望尽可能不离开终端。

man 3 getopt
提供了c函数信息
其中as
man1getopt
mangetopt
给出命令信息。


页面通常使用符号“
name(section)
”:例如,
ftp(1)
。当系统调用、用户命令或宏包的名称重合时,同一页面名称可能出现在手册的多个章节中。

man 3 getopt
显示了C getopt的手册页


请参见
man-man
man-wa getopt
提供了
getopt
的手册页面列表:在我的系统中,它是:

/usr/share/man/man1/getopt.1.bz2
/usr/share/man/man3/getopt.3.bz2
/usr/share/man/man3p/getopt.3p.bz2
或者,
man-f getopt

getopt(1)-解析命令选项(增强)
getopt(3)-解析命令行选项
getopt[](1)-解析命令选项(增强型)
getopt[](3)-解析命令行选项
getopt[](3p)-命令选项解析

然后,您可以使用文件名中的数字(在第一个输出中)或括号中的数字(在第二个输出中):例如,
man1getopt
man3getopt
$man3getopt
,其中
3
是节

$man-man

如各国所述:

本手册通常分为八个编号部分,组织如下(在BSD、Unix和Linux上):

Unix System V使用类似的编号方案,但顺序不同:


使用格式
man[section]name
(例如
man 3 getopt
),其中section可以是以下内容之一:

   1      User Commands
   2      System Calls
   3      C Library Functions
   4      Devices and Special Files
   5      File Formats and Conventions
   6      Games et. Al.
   7      Miscellanea
   8      System Administration tools and Deamons
有关更多信息,请参阅
man

Section     Description
 1.         General commands
 1M.        System administration commands and daemons
 2.         System calls
 3.         C library functions
 4.         File formats and conventions
 5.         Miscellanea
 6.         Games and screensavers
 7.         Special files (usually devices, those found in /dev) and drivers
   1      User Commands
   2      System Calls
   3      C Library Functions
   4      Devices and Special Files
   5      File Formats and Conventions
   6      Games et. Al.
   7      Miscellanea
   8      System Administration tools and Deamons