Find Command Manual Section and View Command Manual Section using man Command on Linux Fedora



Computer Configuration GNU Linux Fedora using Linux Command

 

   The command manual sometimes comes in different manual section. to view command manual in different section you need to specify the man command on what section that you want to use or view.  The example below show the step by step to view command manuals on different section.

 

1.  Step to find location of the command manual section. The example below use whatis command to get manual section for the info command, you can use other command to get the manual section for specific command.

Find command manual section command:   whatis info

Find command manual section

[root@fedora ~]# whatis info

info []              (1)  - read Info documents

info []              (5)  - readable online documentation

info []              (n)  - Return information about the state of the Tcl interpreter

info                (rpm) - A stand-alone TTY-based reader for GNU texinfo documentation

[root@fedora ~]#

 

2.  The output from whatis command above, we know that the info command have manual section on section 1, section 5 and section n.  The man command below show the example to view the manual for info command on section 1, view the manual for info command on section 5 and view the manual for info command on section n.

View manual on section 1 command:   man 1 info

View manual on section 1 command:   man 1 info

[root@fedora ~]# man 1 info

 

INFO(1)                          User Commands                         INFO(1)

 

NAME

       info - read Info documents

 

SYNOPSIS

       info [OPTION]... [MENU-ITEM...]

 

DESCRIPTION

       Read documentation in Info format.

 

:

Hit q key to exit the man command

 

View manual on section 5 command:   man 5 info

View manual on section 5 command:   man 5 info

[root@fedora ~]# man 5 info

 

INFO(5)                                                                INFO(5)

 

NAME

       info - readable online documentation

 

DESCRIPTION

       The  Info  file  format  is an easily-parsable

       representation for online documents.   It  can

       be  read  by  emacs(1) and info(1) among other

       programs.

 

:

Hit q key to exit the man command

 

View manual on section n command:   man n info

View manual on section n command:   man n info

[root@fedora ~]# man n info

 

info(n)                      Tcl Built-In Commands                     info(n)

 

_____________________________________________________

 

NAME

       info  -  Return information about the state of

       the Tcl interpreter

 

SYNOPSIS

       info option ?arg arg ...?

_____________________________________________________

:

Hit q key to exit the man command

 




0 comments: