| Author: | John M. Gabriele |
|---|---|
| Date: | May 2007 |
| Back to: | homepage |
info is the GNU hypertext documentation browser program.
Just run info with no args, and you'll get some helpful usage instructions right at the top of the screen. Hit ? for more help. Note that the commands used inside info are often similar to GNU Emacs commands.
A single Info doc often consists of a number of nodes arranged in a tree structure:
Top
|\
| \
| \
chp1 chp2
| | \
| | \
| | \
sec1 sec1 sec2 (sections)
/|\
/ | \
/ | \
ss1 ss2 ss3 (subsections)
A node is one page (which might be longer than your terminal window) of documentation. Many nodes have "menus" on them -- lines that start with a '*', which point to sub-nodes of the current node. You can scroll the cursor down to them, and hit RET to follow them, or else you can hit m and type the menu title then RET.) Menus are like hyperlinks on a web page that direct you to subsections of the current section.
Nodes have an order to them (left-to-right in the diagram above). You can hit n to go to the "next" one (if it has a next one), and p to go back to the previous one (if there is a previous one). You might think of nodes going left-to-right, whereas you "descend" down into a node (to a "lower level" (i.e. a subtopic)) by following a menu item. Use u to come back up.
You only use n and p to traverse nodes at the same level that are under the same parent node. You use menus to descend down to lower levels (as in: chapter --> topic, topic --> subtopic, subtopic --> sub-subtopic).
Use SPACE and BACKSPACE to move through a long node (PgUp/PgDn work too, as do C-v and M-v). If you keep hitting SPACE, it takes you to the next node. BACKSPACE will eventually get you to the previous node.
You can hit q at anytime to quit info. For commands that expect input, you can always hit C-g to cancel.
Summing those up:
Here's a few more of the essentials:
Don't forget, when info prompts you for something (like, after you hit m), you have case-insensitive autocomplete available -- just hit TAB to get a match.
A "cross-reference" looks like so: *Note Foo: Help-Foo. It's just another hyperlink. Here, the name of the cross-ref is "Foo" and it leads to the node named "Help-Foo". Just remember that menus are for subtopics, but cross refs are for linking to other nodes that you can't get to directly with n, p, and menus -- maybe even to nodes in another manual.
A given info doc may or may not have one or more index nodes. While looking at any node, you can hit 'i' and search that doc's index. You can navigate to the index node just like any other node -- if there is one, it's usually the last one in the Top node of the manual you're reading.