2012-10-09 3 views
2

우분투 명령과 같이 모호한 특정 C 함수가 있습니다 (예 : getopt). 이 함수들의 메뉴얼 페이지는 어떻게 볼 수 있습니까? 의심의 여지가 인터넷에서 쉽게 사용할 수 있지만 나는 터미널까지 가능한 한 멀리 떠나고 싶지 않습니다.우분투 맨 페이지 모호성

+1

$ man 3 getopt,? – Morpfh

답변

4

man [section] name (예 : man 3 getopt) 섹션는 다음 중 하나가 될 수있는 곳 :

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 man를 참조하십시오.

1

man 3 getopt은 c 기능 정보를 제공합니다.
여기서는 man 1 getopt 또는 man getopt은 명령 정보를 제공합니다.

페이지는 전통적으로 "name(section)"이라는 표기법을 사용하여 참조됩니다 (예 : ftp(1)). 시스템 호출, 사용자 명령 또는 매크로 패키지의 이름이 일치 할 때와 같은 페이지 이름이 설명서의 여러 섹션에 나타날 수 있습니다.

2

man 3 getopt에는 C getopt의 맨 페이지가 표시됩니다.

1

man -wa getoptman man 당신에게 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) - parse command options (enhanced) 
getopt    (3) - Parse command-line options 
getopt []   (1) - parse command options (enhanced) 
getopt []   (3) - Parse command-line options 
getopt []   (3p) - command option parsing 

당신이 할 수있는 그런 다음 파일 이름 (첫 번째 출력) 또는 괄호 사이에있는 숫자를 사용하여 올바른 매뉴얼 페이지를 선택하십시오 두 번째 출력에서) : 예 : man 1 getopt 또는 man 3 getopt.

1

$ man 3 getopt 여기에서 3은 섹션입니다.

Section  Description 
1.   General commands 
2.   System calls 
3.   Library functions, covering in particular the C standard library 
4.   Special files (usually devices, those found in /dev) and drivers 
5.   File formats and conventions 
6.   Games and screensavers 
7.   Miscellanea 
8.   System administration commands and daemons 

유닉스 :

$ man man

Sections.로 상태 : (BSD 유닉스와 리눅스에) 다음과 같이

설명서는 일반적으로 조직, 여덟 개 번호 섹션으로 나누어 져 System V는 다른 순서를 제외하고는 유사한 번호 체계를 사용합니다 :

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