2009-06-07 10 views
7

संभव डुप्लिकेट:
Why do programs in Unix-like environments have numbers after their name?क्यों कर रहे हैं * (1), Diff (1), बिल्ली (1) मैन के रूप में भेजा nix आदेश, आदि

क्या (1) का क्या अर्थ है ?

+0

डुप्लिकेट: http://stackoverflow.com/प्रश्न/587,676/क्यों करते हैं-कार्यक्रमों में यूनिक्स की तरह-वातावरण-है-संख्या के बाद उनके नाम –

उत्तर

14

यह पुस्तिका अनुभाग अपने man पेज में रहती है man man से:

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 conven- 
     tions), e.g. man(7), groff(7) 
    8 System administration commands (usually only for root) 
    9 Kernel routines [Non standard] 
1

यह manual section संदर्भित करता है - किसी पर 'आदमी आदमी' से

 
1 General commands 
2 System calls 
3 C library functions 
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 
4
 1 General commands (tools and utilities). 
     2 System calls and error numbers. 
     3 Libraries. 
     3p perl(1) programmer's reference guide. 
     4 Device drivers. 
     5 File formats. 
     6 Games. 
     7 Miscellaneous. 
     8 System maintenance and operation commands. 
     9 Kernel internals. 

। उचित यूनिक्स प्रणाली।

7

पहले सबमिट किए गए सभी उत्तर सही हैं - (1) ऑनलाइन मैन पेज के अनुभाग को संदर्भित करता है। लेकिन आपका अगला प्रश्न भी हो सकता है: मैन्युअल सेक्शन का संदर्भ क्यों लें?

उत्तर यह है कि एक ही शब्द या आदेश विभिन्न वर्गों में दिखाई दे सकता है। उदाहरण के लिए, "passwd" आपके पासवर्ड को बदलने और फ़ाइल/etc/passwd को बदलने के लिए दोनों आदेशों को संदर्भित करता है। नतीजतन, यदि आप पूर्व के बारे में बात कर रहे हैं, तो आपको passwd (1) लिखना चाहिए और बाद के बारे में बात करते समय, passwd (5) लिखें।

आदमी कमांड के पास शुरुआत से अंत तक खोज के बजाय एक विशिष्ट अनुभाग का उपयोग करने के लिए मजबूर करने का एक तरीका है। मेरी यूनिक्स प्रणाली (एक मैक), बस आदमी पासवर्ड टाइपिंग खंड 1. से बाहर प्रवेश लाएगा खंड 5 में से प्रविष्टि दिखाने के लिए पर, का उपयोग

man 5 passwd