Name

help

Synopsis

help [-s] [pattern]

Print usage information on standard output for each command that matches pattern. The information includes descriptions of each command's options. With the -s option, print only brief usage information.

Examples

$ help -s cd        Short help
cd: cd [-L|-P] [dir]

$ help true         Full help
true: true
Return a successful result.

Get bash Quick Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.