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

NameTypeDescription
-soptionShow short syntax summary
-doptionShort description
-moptionManual-page-like format
patternoperandBuiltin 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
Linux Reference