info
Overview
The info
command reads documentation in Info format. It provides a more detailed and structured alternative to man pages, primarily for GNU software.
Syntax
info [options] [command]
Common Options
Option | Description |
---|---|
-a |
Use all matching manuals |
-k |
Look up string |
-n |
Show specific node |
-f |
Specify Info file |
-w |
Show file location |
-h |
Show help |
-v |
Show version |
--index-search |
Search index |
--show-options |
Show options node |
--subnodes |
Recursively output |
--vi-keys |
Use vi-like keys |
Key Use Cases
- GNU documentation
- Detailed manuals
- Tutorial reading
- Reference lookup
- System learning
Examples with Explanations
Example 1: View Info
info ls
Show ls documentation
Example 2: Search String
info --index-search="pattern"
Search in index
Example 3: Show Options
info --show-options command
Display command options
Common Usage Patterns
Basic viewing:
info command
Specific node:
info -n 'node' file
All nodes:
info --subnodes file
Additional Resources
Best Practices
- Learn navigation
- Use search
- Follow menus
- Read tutorials
- Take notes
Documentation Types
- Programs
- Libraries
- Utilities
- System
- Tutorials
Troubleshooting
- Navigation issues
- Display problems
- Missing files
- Search failures
- Key bindings