•Arnošt Havelka
Getting Help in Bash
Learn how to access help and documentation for any command.
Start Interactive LessonForgotten how a command works? No problem! Bash provides built-in help systems to guide you.
Quick Help: command --help
Almost every command supports the --help flag to show its usage and options.
Try the command
Get quick help for any command!
Build the command
command--help
--helpQuick help - displays usage information and available options.
Terminal
C:\Users\User>command --help
See what a command can do:
Command Prompt
C:\Users\User>cat --help
Full Documentation: man Pages
The man command opens the comprehensive manual for any command. Press q to exit.
Try the command
Dive deep into command documentation!
Build the command
man[command]
manManual pages - displays detailed documentation for a command.
Terminal
C:\Users\User>man [command]
Explore full documentation:
Command Prompt
C:\Users\User>man grep
When to Use Which
Use --help when you need:
- Quick reference for flags
- Fast answer without reading full docs
Use man when you need:
- Complete understanding of a command
- Detailed examples and edge cases
- Full option reference
Knowledge Check
1 / 3How do you get quick help for a command?
References
These documentation links provide authoritative details for the commands used in this article.