Bookmark this page

Guided Exercise: Reading Info Documentation

In this exercise, you will look up information stored in GNU Info documents by navigating those documents with command-line tools.

Outcomes

You should be able to navigate GNU Info documentation with command-line tools.

Log in to workstation as student using student as the password.

On workstation, run the lab help-info start command.

[student@workstation ~]$ lab help-info start
  1. On workstation launch pinfo without any arguments.

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

    Use UpArrow or DownArrow until (coreutils) Common options is highlighted.

    Figure 4.2: Bash documentation
  3. Press Enter to view this topic.

    Figure 4.3: Common options info topic
  4. Browse through this Info topic. Learn whether long-style options can be abbreviated.

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

  5. 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.

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

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

  7. Return to the top level 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 moves directly to the directory of topics.

  8. Search for the pattern coreutils and select that topic.

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

    Figure 4.4: Search result
  9. In the menu at the top, locate and select Output of entire files by pressing n. Browse the topic.

    Use Enter to select cat invocation. Use the arrow keys to browse the topic.

  10. Move up two levels to return to GNU Coreutils. Move to Summarizing files.

    Press Enter to select the topic then browse the topic.

  11. Press q to quit pinfo.

  12. Use the pinfo command again, specifying coreutils as the destination topic from the command line.

    [student@workstation ~]$ pinfo coreutils
  13. Select the Disk usage topic.

    Press DownArrow to highlight Disk usage, then press Enter to select this topic.

  14. Read the df invocation and du invocation 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 when you are finished.

Finish

On workstation, run the lab help-info finish script to complete this exercise.

[student@workstation ~]$ lab help-info finish

This concludes the guided exercise.

Revision: rh124-8.2-df5a585