•Arnošt Havelka
Getting Help in Bash
Learn how to access help and documentation for any command.
Start Interactive LessonGetting Help in Bash
Forgotten 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.
Usage:command--help
--help
Quick help - displays usage information and available options.
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.
Usage:man[command]
man
Manual pages - displays detailed documentation for a 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 Microsoft Learn and Windows documentation links provide authoritative details for the commands used in this article.