info command in Linux with Examples

infocommand reads documentation in the info format. It will give detailed information for a command when compared with the man page. The pages are made using the texinfo tools because of which it can link with other pages, create menus and easy navigation.

Syntax:

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

Options:



  • -a, –all: It use all matching manuals.
  • -k, –apropos=STRING: It look up STRING in all indices of all manuals.
  • -d, –directory=DIR: It add DIR to INFOPATH.
  • -f, –file=MANUAL: It specify Info manual to visit.
  • -h, –help: It display this help and exit.
  • -n, –node=NODENAME: It specify nodes in first visited Info file.
  • -o, –output=FILE: It output selected nodes to FILE.
  • -O, –show-options, –usage: It go to command-line options node.
  • -v, –variable VAR=VALUE: It assign VALUE to Info variable VAR.
  • –version: It display version information and exit.
  • -w, –where, –location: It print physical location of Info file.

Examples:

  • -a : It use all matching manuals and display them for a particular command.
     info -a cvs 

  • -k : It look up STRING in all indices of all manuals and then display the same.
     info -k cvs 

  • -d : It adds DIR to INFOPATH and also display the same.
     info -d cvs 

  • -O : It go to command-line options node for a particular command and display the same.
     info -O cvs 

  • -w Command : It print physical location of Info file.
     info -w cvs 

Note:

  • To check for the manual page of info command, use the following command:
    man info
  • To check the help page of info command, use the following command:
    info --help 



My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.