Ubuntu – How to get help for “echo” or other bash commands

command linedocumentation

man echo works. but out of curiosity, does echo have something similar to a --help flag/parameter?

Best Answer

Assuming you are using bash, echo is a shell builtin (which you can see by running type echo). That means the man-page you want to read is man bash. Or you can get help on bash builtins and keywords with the help builtin, e.g. help echo.

The information you see when you run man echo, is for the external echo command, installed by GNU coreutils. (type -a echo).

To learn bash, read http://mywiki.wooledge.org/BashGuide