Open In App
Related Articles

info command in Linux with Examples

Improve
Improve
Improve
Like Article
Like
Save Article
Save
Report issue
Report
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 

Last Updated : 22 May, 2019
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads