Search code examples
ubuntumanpage

Ubuntu man page ambiguity


There are certain C functions whose names are ambiguous with the Ubuntu commands eg: getopt. How do I view the man page of these functions? No doubt it is easily available on the internet but I am keen to not leave the terminal as far as possible.


Solution

  • Use the format man [section] name (e.g. man 3 getopt) where section can be one of the followings:

       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
    

    Consult man man for more information.