man echo
works. but out of curiosity, does echo have something similar to a --help
flag/parameter?
Ubuntu – How to get help for “echo” or other bash commands
command linedocumentation
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 runningtype echo
). That means the man-page you want to read isman bash
. Or you can get help on bash builtins and keywords with thehelp
builtin, e.g.help echo
.The information you see when you run
man echo
, is for the externalecho
command, installed by GNU coreutils. (type -a echo
).To learn bash, read http://mywiki.wooledge.org/BashGuide