commands
help — read Bash builtin help
Bash builtin for help on shell features and builtins. Use it for cd rather than assuming the help options of external programs work for cd.
Formal Syntax & Structure
linux syntaxlinux
help [-dms] [pattern ...]Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| -s | option | Show short syntax summary |
| -d | option | Short description |
| -m | option | Manual-page-like format |
| pattern | operand | Builtin or topic |
Return Value
text and exit status
Displays help; zero if a requested topic matches, nonzero on failure.
Working Example
Example Snippetlinux
help -s cd