help
Quick Reference
Command Name:
help
Category:
system management
Platform:
linux
Basic Usage:
Common Use Cases
- 1
Command help
Display help information for a command
- 2
Quick reference
Get a brief overview of command usage
- 3
Learning
Learn about new commands and utilities
- 4
Scripting
Use in shell scripts to dynamically retrieve command help
Syntax
help [PATTERN...]
Options
Option | Description |
---|---|
-d | Output short descriptions for each topic |
-m | Display usage in man page format |
-s | Output only a short usage synopsis for each topic |
Examples
How to Use These Examples
The examples below show common ways to use the help
command. Try them in your terminal to see the results. You can copy any example by clicking on the code block.
Basic Examples:
help
Display a list of all available shell builtin commands.
help cd
Show detailed help information for the cd builtin command.
help for
Display documentation for the for loop syntax in bash.
Advanced Examples:
help -d
Output a short description for each shell builtin command.
help -m if
Display the help information for the if command in man page format.
help -s read
Show a shorter, more concise usage syntax for the read command.