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

NameTypeDescription
patternstringName or matching pattern for a help topic.
-soptionShow a short usage synopsis.
-doptionShow a short description.
-moptionDisplay 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
Bash Reference