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
Recommended Posts:
- mv command in Linux with examples
- man command in Linux with Examples
- cmp Command in Linux with examples
- tee command in Linux with examples
- sum command in Linux with Examples
- cvs command in Linux with Examples
- atq command in linux with examples
- ex command in Linux with examples
- cut command in Linux with examples
- tac command in Linux with Examples
- env command in Linux with Examples
- df Command in Linux with examples
- dir command in Linux with examples
- ed command in Linux with examples
- look command in Linux with Examples
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.



