Overview
info is used to navigate documents written in the GNU Info format. These documents are organized in a tree structure, allowing easy discovery of related topics, and internal hyperlinks enable navigation between different sections.
Key Features
- Document navigation via hyperlinks
- Hierarchical document structure with a tree format
- Built-in search functionality
- More detailed and in-depth information compared to man pages
Key Options
The info command offers various options to control document navigation and output.
Navigation and Output
Generated command:
Try combining the commands.
Description:
`info` Executes the command.
Combine the above options to virtually execute commands with AI.
Usage Examples
Demonstrates various ways to navigate Info documents and retrieve information using the info command.
Open the main Info page
info
Executes the info command to open the main page of the Info system.
Open Info page for a specific command
info ls
Opens the Info documentation for the ls command (requires the corresponding documentation to be installed).
Start from a specific node
info --node="Top" info
Starts navigation from the 'Top' node within the Info documentation for the info command itself.
Search Info documents by keyword
info -k "directory"
Searches all Info documents for nodes containing the keyword 'directory'.
Save Info page content to a file
info --output=ls_info.txt ls
Saves the Info page content for the ls command to the file 'ls_info.txt'.
Tips & Notes
Provides tips and points to consider for more efficient use of the info command.
Internal Info Navigation Keys
Useful shortcuts for navigating documents within the info viewer.
- n: Move to the Next node
- p: Move to the Previous node
- u: Move to the Up node
- l: Move to the Last visited node
- q: Quit the info viewer
- s: Search for text within the current node
- g: Go to a specific node
Difference from man pages
Man pages typically provide brief usage and options for commands, whereas info documents offer more in-depth explanations, concepts, and examples through a tree structure and hyperlinks. For complex GNU software, info documents can be significantly more detailed and useful than man pages.
Absence of Info Documentation
Not all commands provide info documentation. If info documentation is unavailable, you can check the man page or use the `--help` option for basic information.