You are here: >

Linux and Unix info command

info commandAbout info
info syntax
info examples
Related commands
Linux and Unix main page

About info

info reads documentation in the info format.

Info is similar to man, with a more robust structure for linking pages together. Info pages are made using the texinfo tools, and can link with other pages, create menus and ease navigation in general.

The default location of info documentation is /usr/share/info.

info syntax

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

Options

-k, --apropos=STRING

look up STRING in all indices of all manuals.

-d, --directory=DIR

add DIR to INFOPATH.

--dribble=FILENAME

remember user keystrokes in FILENAME.

-f, --file=FILENAME

specify Info file to visit.

-h, --help

display this help and exit.

--index-search=STRING

go to node pointed by index entry STRING.

-n, --node=NODENAME

specify nodes in first visited Info file.

-o, --output=FILENAME

output selected nodes to FILENAME.

-R, --raw-escapes

output "raw" ANSI escapes (default).

--no-raw-escapes

output escapes as literal text.

--restore=FILENAME

read initial keystrokes from FILENAME.

-O, --show-options, --usage

go to command-line options node.

--subnodes

recursively output menu items.

--vi-keys

use vi-like and less-like key bindings.

--version

display version information and exit.

-w, --where, --location

print physical location of Info file.

MENU-OPTION, if present, is the menu entry to start from; it is searched for in all 'dir' files along INFOPATH. If it is not present, info merges all 'dir' files and shows the result. Any remaining arguments are treated as the names of menu items relative to the initial node visited.

For a summary of key bindings, type h within info.

info examples

info emacs

Start at emacs node from top-level dir.

info --show-options emacs

start at node with emacs command line options

info -f ./foo.info

show file ./foo.info, not searching dir

info

Shows the top-level info page.

info --subnodes -o all-vi-info.txt vi

Output all information on the vi command, with any subnodes of information, to the file all-vi-info.txt.

man — Display the manual page of a given command.
whatis — Display short manual page descriptions.