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.
How to Distinguish Between Command, Utility, or Builtin for Documentation
command linedocumentationinfomanpage
Best Answer
You can use
type
to find out:For bash builtins, use
help
, as inhelp echo
.