man-pages(7) Miscellaneous Information Manual man-pages(7) man-pages - Linux man [section] title (man [] ) , Linux (Linux man-pages project), , , , Linux GNU C. 2, 3, 4 7 1, 5 8 Linux. , , . : 1 () , . 2 , , . 3 ( libc), , 2. 4 () /dev, . 5 , . 6 , . 7 , , , , , . 8 mount(8), root. groff an.tmac, man(7). , Linux . 75 . , . TH: .TH title section date source manual-section : title - . section - , (, 7). date - ( man-pages , "" ). YYYY-MM-DD, . . --. source - , ( , ). manual-section - , . . , . , . [ 2 3] [ 4] [ 1 8] [ 1 8] [ 2 3] [ 2 3] [ 2 3] [ 2 3] [ ] [ ] [ ] , , ; ., , , ( 4 5). , , , , (.SS) . . NAME ( . man(7)) . See man(7) for important details of the line(s) that should follow the .SH NAME command. All words in this line (including the word immediately following the "\-") should be in lowercase, except where English or technical terminological convention dictates otherwise. , . , ( ) , , , : (libfoo[, -lfoo]). . ( ); , . ([]), (|), (...), , , . #include, . , ( ), , feature_test_macros(7). . , , 4. , . , , ; , . . . , , . .TP ( ): XYZ_FLAG ( Linux 3.7) , , ( , , ). . , , 1 8. . , . , , 1 8. 2 3 , , , . 2 3 , errno, . , ( ). : (, , ). . , . , , , , . , . /usr/local, /usr/local . , . attributes(7) . , - API . , , . standards(7). , . , , . Linux GNU, . BSD, . ( , , ), ('.'). , Linux glibc , . , . , ( , ). , , , , , , , , , Linux 2.4 (. . Linux 2.2), , glibc 2.1 (. . glibc 2.0). syscalls(2) , . (, SUS, SUSv2 XPG SVr4 4.xBSD) , . . For Section 2 and 3 man pages you may find it useful to include subsections (SS) named Linux Notes and glibc Notes. 2 C , ( ) - , . , . , . , , . For details on writing example programs, see Example programs below. () . . ( ). , . , . " " (man-pages) . , , . " ". . man-pages . . , , , . , , , . , . . , .ad l (don't right justify) .nh (don't hyphenate). , "\%". , FOSS , --, -- . , man-pages. .nf/.fi, . ; , : int snprintf(size_t size; char str[restrict size], size_t size, const char *restrict format, ...); , , . ( .P) : o (, , list(3)); o , . . , , : (1) , , , (, xterm) . : , , , . : int tcsetattr(int fd, int optional_actions, const struct termios *termios_p); (2) , , , , . PDF ( , ). : int getopt(int argc, char * const argv[], const char *optstring); int getopt_long(int argc, char * const argv[], const char *optstring, const struct option *longopts, int *longindex); , errno, "errno " - . , POSIX.1, FreeBSD. : o .ad l/.ad, , .nh/.hy, . o , ( , , ) lbx . o T{/T}, ( , 80 ). . man-pages. - , (Chicago Manual of Style). . . ( ) . ( ). " ()" , - . UNIX for Beginners [2nd ed., Brian W. Kernighan] , "Hints for Preparing Documents". - , , - . <<>>, <<>>, <<>>, <<>> - . , , ( , 1 8), , . . , , ( 2 3), , ; , : int myfunction(int argc, char **argv); , , . , . , fcntl(2) : fcntl(). : .BR fcntl () ( "\fB...\fP()" ). , (, , . .), . , << >>, , . : . ( ), . .TP. " ". (1), (2). , . (4.2). () : [4], [5]. . : 0 , , . 1 - , , cut(1). : (), () (<<(a), (b)>>). . (\[bu]). , , . , " ". . " ", . ( .P .IP). , ( PostScript PDF). ( ) (, ), , (, #include ). , , (, ). , , (, MAXINT). : NULL. , , ( .TP). , , , man 7 man-pages , , , : man 7 man-pages. , , , , (\~). , , -l. , , . , . , , , $ date; Thu Jul 7 13:01:27 CEST 2016 , (, intro(2)). : .BR intro (2) ( , man2html(1), ) , ; : ^X. 2.59, man-pages ( ); , . , , : o <> (), <> (), <> () . ., <>, <>, <> . . o <> <>. , . POSIX BSD . Linux man-pages <>. BSD BSD x.yBSD, x.y - (, 4.2BSD). BSD 4.3. (<>) , , (, ) (, ). : .SS Linux , , , 4 (. . .in +4n .in), .EX .EE (.P .IP). : .P .in +4n .EX int main(int argc, char *argv[]) { return 0; } .EE .in .P , , , . -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- bit mask - bitmask - built-in - builtin Epoch - epoch - UNIX (00:00:00, 1 1970 UTC) filename ( ) file name - filesystem ( ) file system - hostname ( ) host name - inode i-node - lowercase - lower case, lower-case - , nonzero - non-zero - pathname - path name - pseudoterminal - pseudo-terminal - privileged port - reserved port - , system port - real-time - realtime - , real time - run time - runtime saved set-group-ID - saved group ID , saved set-GID - - saved set-user-ID - saved user ID, saved set-UID - set-group-ID - set-GID, setgid - set-user-ID - set-UID, setuid - superuser - , super user, super-user - , superblock - super block, super-block - symbolic link - symlink timestamp - time stamp - timezone ( ) time zone - uppercase - upper case, upper-case - usable - useable - user space - userspace - username ( ) user name - x86-64 x86_64 Except if referring to result of uname -m or similar zeros - zeroes - . , , , . ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 32 32-bit (32-) 8-, 16- . . current process - calling process - , manpage - man page, manual page - minus infinity - negative infinity - non-root - root unprivileged user - non-superuser - unprivileged user - nonprivileged - unprivileged - operating system - plus infinity - positive infinity - pty pseudoterminal - tty termina - Unices - UNIX systems - UNIX Unixes - UNIX systems - UNIX . , : DG/UX HP-UX UNIX UnixWare NULL, NUL, null (null pointer) -- , , , NULL. , NUL (null byte), 0, '\0'. << >> (null pointer) << >>, <>; << NULL>> (NULL pointer). << null>> (null byte). <>, <>. << >> (<>) << >> (null character). , , << null>> (terminating null byte); << null>> (null-terminated), << NUL>> (NUL-terminated). .UR/.UE ( groff_man(7)). , ; : BROWSER=firefox man -H pagename e.g. (.), i.e. (. .), a.k.a., , <>, <>, <>, <> <>, (<> (), <> ( ), <> ( ), <> ( ), <> ( )). , -- (.. ). . <> <> . em-dash--, , -- *roff <<\[em]>> ( ASCII , ). without . , (.. ). : 32 (32-bit value) (command-line argument) (floating-point number) (run-time check) (user-space function) (wide-character string) , , , , , <>, <>, <
>, <>,
       <>  . .  
       ,  ,
         
       ,  
         
        
         
       .  
        
        
        :

               (interprocess)
               (multithreaded)
               (multiprocess)
               (nonblocking)
                 (nondefault)
               (nonempty)
               (noninteractive)
               (noninteractive)
               (nonportable)
              nonzero - 
                (preallocated)
                (precreate)
                (prerecorded)
               (reestablished)
                (reinitialize)
               (rearm)
               (reread)
               (subcomponent)
               (subdirectory)
               (subsystem)

         
         
        
        , 
       ,  ,
         
       . 
       :

               ASCII (non-ASCII)
                (non-English)
               NULL (non-NULL)
                  (non-real-time)

         ,  
        <>
       ()  <>
       () --  
          ,
       , 
        .

    
       
         
        
        (,  
       (-1),   
         
        (utf-8(7))  
        , 
          (ls -l)),
          
         
        
       :

           \-

          
         .

        
         
        :

       o    
           
          ,  
           ASCII, 
            PDF  
          ,
           Unicode/UTF-8.

       o   ,
            
             
            
             
          .

         
       ,  
          ASCII,   UTF-8,
        <<\[aq]>> (<>
       (<< >>));
       

           \[aq]C\[aq]

        C --   .
          
          
        .

         
        
         (^), 
         
         ,    PDF,
        <<\[ha]>>. 
         
        , 
        
         
          PDF.

        
         <<~>> 
           PDF.
         
       <<\[ti]>>.   
          ,
         
          
        PDF.

     
        
        
         
       , 
        
         
       .  
         :

       o    
              .

       o   
            
             , 
            -
           ,   
            
           
          . 
          ,  
            
           , 
          , 
          
          .

       o    
            
           (,
            
              
          100  ),  
            
            
           , 
           
          
          
           
          .

       o   
           .

       o    
           ,  
          . 
            
           
           .
            
           
          <<->> (.
          . ,
             
           ); 
           
            
            ,  
           .

       o    
            
            
            
           
          .

       o    
            
           
           
            cc -Wall.

       o  ,    
          , 
           
          
           
          ,  
            
            (  
           
            ,
           
            ).

       o    
             
             (Kernighan and
          Ritchie),    4
          . (
           
            
          !)  
            
           
             -
           
           :

              indent -npro -kr -i4 -ts4 -sob -l72 -ss -nut -psl prog.c

       o    
            
            
            
            
           :

              exit(EXIT_SUCCESS);
              exit(EXIT_FAILURE);

           
           
           :

              exit(0);
              exit(1);
              return n;

       o    
            
           
          ,  
             
            Program
          source,   :

              .SS Program source

            , 
           
            
           .

          
         ,
       
        
         , :

       o    
             
          .

       o    
            
          .

       o   
           
           ,
             
           .

         
         
        wait(2)   pipe(2).


         
        ,  
         
        man-pages,  pipe(2) 
       fcntl(2).

 
       man(1), man2html(1), attributes(7), groff(7), groff_man(7), man(7),
       mdoc(7)


         
        
       () aereiae , Alexey
       , Azamat Hackimov ,
       Dmitriy S. Seregin , Dmitry Bolkhovskikh
       , ITriskTI , Max Is
       , Yuri Kozlov , 
        , 
        
       , Alexander Golubev  
       Aleksandr Felda 

         
        
       ; 
        
        
        GNU (GNU General Public License - GPL,
         3
         ) 
        
       ,   -
       .

         
       -  
         
       , ,
         
       ()  ()
       () 
           
        
       
       .

Linux man-pages 6.18   8  2026 .          man-pages(7)