info
info linux command cheatsheet by Thamizhiniyan C S
Introduction
This command is used to read the documentations of commands in the Info Format. It's an alternative to the man page. The info command reads the info files, which are stored as nodes in tree structure. Each info file contains hyperlinks to the next node. Using hyperlinks another nodes can be accessed.
Syntax
info [OPTION]... [MENU-ITEM...]
Important Flags
-a, –all
Use all matching manuals.
-k, –apropos=STRING
Look up STRING in all indices of all manuals.
-d, –directory=DIR
Add DIR to INFOPATH.
-f, –file=MANUAL
Specify Info manual to visit.
-h, –help
Display this help and exit.
-n, –node=NODENAME
Specify nodes in first visited Info file.
-o, –output=FILE
Output selected nodes to FILE.
-O, –show-options, –usage
Go to command-line options node.
-v, –variable VAR=VALUE
Assign VALUE to Info variable VAR.
–version
Display version information and exit.
-w, –where, –location
Print physical location of Info file.
Interactive Mode Commands
?
Display command help
PAGE UP or BACKSPACE
Display previous page
PAGE DOWN or spacebar
Display next page
n
Next—display the next node
p
Previous—display the previous node
U
Up—display the parent node of the currently displayed node, usually a menu
ENTER
Follow the hyperlink at the cursor location
Q
Quit
Examples
infoshow top-level dir menu
info -a lsIt uses all matching manuals and displays them for a particular command.
info -k lsIt looks up STRING in all indices of all manuals and then displays the same.
info -d lsIt adds DIR to INFOPATH and also displays the same.
info -O lsIt goes to the command-line options node for a particular command and displays the same.
info -w lsIt prints the physical location of the Info file.
man infoTo check the manual page of the info command.
info --helpTo check the help page of the info command.
info info-stndshow the manual for this Info program
info emacsstart at emacs node from top-level dir
info emacs buffersselect buffers menu entry in emacs manual
info emacs -n Filesstart at Files node within emacs manual
info '(emacs)Files'alternative way to start at Files node
info --show-options emacsstart at node with emacs' command line options
info --subnodes -o out.txt emacsdump entire emacs manual to out.txt
info -f ./foo.infoshow file ./foo.info, not searching dir
Last updated
Was this helpful?