builtin
Bash help — built-in documentation
Shows Bash help for built-in commands and shell constructs. With no pattern, lists help topics. This is not a general manual for external programs.
Formal Syntax & Structure
bash syntaxbash
help [-dms] [pattern ...]Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| pattern | string | Name or matching pattern for a help topic. |
| -s | option | Show a short usage synopsis. |
| -d | option | Show a short description. |
| -m | option | Display a man-page-like format. |
Return Value
exit status
0 if at least one requested topic is found (or topics are listed); nonzero when no requested topic matches.
Working Example
Example Snippetbash
help printf