The Wayback Machine - https://web.archive.org/web/20230512155717/https://www.geeksforgeeks.org/info-command-in-linux-with-examples/
Skip to content
Related Articles
Get the best out of our app
GeeksforGeeks App
Open App
geeksforgeeks
Browser
Continue

Related Articles

info command in Linux with Examples

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

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
Last Updated : 22 May, 2019
Like Article
Save Article
Similar Reads
Related Tutorials