I'm running Bash scripting, but sometimes I get confused which of these commands I use belong to who. Sometimes man xxx
works, sometimes doesn't, so I use --help
or info
, mostly one of these works to show description of the command. Can anyone tell me how I would know what command belongs to what? Bash builtin, GNU utility, etc.
Ubuntu – How to distinguish between a command, utility, or builtin for getting documentation
command linedocumentationinfomanpage
Best Answer
You can use
type
to find out:For bash builtins, use
help
, as inhelp echo
.