Bookmark this page

Guided Exercise: Using the pinfo Command

In this lab, you will browse GNU Info documentation using command-line tools.

Outcomes

Understand program documentation in the GNU Info node system.

Perform the following steps on serverX unless directed otherwise.

  1. Invoke pinfo without arguments.

    [student@serverX ~]$ pinfo
  2. Navigate to the Common options topic.

    Use UpArrow or DownArrow until (coreutils) Common options is highlighted. Press Enter to view this topic.

  3. Browse through this info topic. Learn if long-style options can be abbreviated.

    Use PageUp and PageDown to navigate through the topic. Yes, many programs allow long options to be abbreviated.

  4. Determine what the symbols -- signify when used as a command argument.

    The symbols -- signify the end of command options and the start of command arguments in complex commands where the shell's command-line parser might not correctly make the distinction.

  5. Without exiting pinfo, move up to the GNU Coreutils node.

    Press u to move up to the top node of the topic.

  6. Move up again, to the top topic.

    Press u again. Observe that when positioned at the top of a topic node, moving up returns to the directory of topics. Alternately, pressing d from any level or topic will move directly to the directory of topics.

  7. Search for the pattern nano and select that topic.

    Press / followed by the search pattern nano. With the topic highlighted, press Enter.

  8. In the Introduction, locate and select Command Line Options. Browse the topic.

    Press Enter to select Introduction, then DownArrow and Enter to select Command Line Options. Use the arrow keys to browse the topic.

  9. Move up one level to return to Introduction. Move to the next topic.

    Press u to move up one level. The new location will be nano's topic 1 Introduction. Now press n. You will have moved to nano's topic 2 Editor Basics.

  10. Exit pinfo.

    Press q to quit pinfo.

  11. Invoke pinfo again, specifying nano as the destination topic from the command line.

    [student@serverX ~]$ pinfo nano
  12. Select the Editor Basics topic.

    Press DownArrow to highlight Editor Basics, then press Enter to select this topic.

  13. Read the Entering Text and Special Functions subtopics.

    Use arrow keys to highlight a topic, PageUp and PageDown to browse the text, then press u to move up one level. Press q to quit pinfo when you are finished.

Revision: rh124-7-1b00421