Results 1 to 5 of 5

Thread: Any command to print man page sections?

  1. #1
    Join Date
    Aug 2013
    Beans
    33

    Any command to print man page sections?

    Hi,
    is there any param for "man" to print the section numbers with their description (example), or any standalone command?

  2. #2
    Join Date
    Apr 2012
    Beans
    5,430

    Re: Any command to print man page sections?

    Not sure exactly what you're asking, but that information is in the man page for man itself - so the command

    Code:
    man man
    will show it

    Code:
           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]

  3. #3
    Join Date
    Mar 2010
    Location
    Metro-ATL
    Beans
    Hidden!
    Distro
    Lubuntu 14.04 Trusty Tahr

    Re: Any command to print man page sections?

    What have you tried already? What were the results?

    There are different manpage formats - more than I would have believed possible.
    I would specify the section wanted and redirect the output as ASCII to a file, then edit away the parts I didn't want to send to a printer.
    nroff, groff are the commands we used to do this years ago. These have different filters to handle different inputs.

    Something like this:
    gunzip -c passwd.5.gz | groff -T ascii |more
    seemed to work.

  4. #4
    Join Date
    Aug 2011
    Location
    47°9′S 126°43W
    Beans
    1,878
    Distro
    Kubuntu 12.10 Quantal Quetzal

    Re: Any command to print man page sections?

    Funny you ask that, since the man pages were meant to replace the hardcopy documentation...

    If you intend to print pages, there are utilities around to convert them to some fancier formats (man2html)
    Warning: unless noted otherwise, code in my posts should be understood as "coding suggestions", and its use may require more neurones than the two necessary for Ctrl-C/Ctrl-V.

  5. #5
    Join Date
    Aug 2013
    Beans
    33

    Re: Any command to print man page sections?

    Yes it's ironic.. "man man" is good enough, problem solved, though issuing "man" on "man" reminds me of the Inception movie.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •