info
Overview
The info
command reads documentation in Info format. It provides a more detailed and structured documentation system than man pages, particularly for GNU software.
Syntax
info [options] [command]
Common Options
Option | Description |
---|---|
-k keyword |
Look up keyword in all indices |
-f file |
Specify Info file to read |
-n nodename |
Go to specific node |
-h |
Display help |
-w name |
Show which Info file documents name |
--show-options |
Go to command-line options node |
--subnodes |
Recursively output menu items |
--vi-keys |
Use vi-like key bindings |
Key Use Cases
- Read detailed GNU documentation
- Navigate structured documentation
- Search documentation
- Find command options
- Learn about GNU software
Examples with Explanations
Example 1: Basic Usage
info ls
Show documentation for ls command
Example 2: Search Keyword
info --apropos=keyword
Search for keyword in all Info documents
Example 3: Output All Nodes
info --subnodes ls > ls-info.txt
Save complete ls documentation to file
Understanding Output
Navigation commands: - n
: Next node - p
: Previous node - u
: Up node - l
: Last node - d
: Directory node - t
: Top node - q
: Quit - h
: Help
Common Usage Patterns
View command documentation:
info command
Search in all documents:
info --apropos="search term"
View specific section:
info -n 'section name' command
Performance Analysis
- Faster than web browsers
- More detailed than man pages
- Structured navigation
- Cross-referenced documentation
- Hypertext-like links