3 ms·
There is no man or info page for "command" on Ubuntu, I guess it's just a bash builtin ("which command" doesn't find it). "which" has a man page though.
by Izkata 5y ago
There is no man or info page for "command" on Ubuntu, I guess it's just a bash builtin ("which command" doesn't find it). "which" has a man page though.
- rascul 5y agoFor bash, it is documented with 'help command' or the bash man page, section SHELL BUILTIN COMMANDS.
- sevensor 5y agoIn bash, such things are documented in the help system: $ help command command: command [-pVv] command [arg ...] Execute a simple command or display information about commands. Runs COMMAND with ARGS suppressing shell function lookup, or display information about the specified COMMANDs. Can be used to invoke commands on disk when a function with the same name exists. Options: -p use a default value for PATH that is guaranteed to find all of the standard utilities -v print a description of COMMAND similar to the `type' builtin -V print a more verbose description of each COMMAND Exit Status: Returns exit status of COMMAND, or failure if COMMAND is not found.
- denton-scratch 5y agoI didn't know about the "help" command in bash. I've always gone to "man bash", and then scrolled up and down for an hour or so. Or just cranked-up a search engine. So thanks for that.
- coolgeek 5y agoApparently, there's an "info" command, as well
- MonkeyClub 5y agoThough info isn't POSIX compliant. Not to mention that most distributions completely ignore it and don't populate it with a program's info documentation -- even when such exists.
- greyfade 5y agoNeither is Bash. And, being GNU projects, Bash and `info` generally come hand-in-hand.
- fractalb 5y agoWow. I never knew this. I tried scouring through the bash manpage to get hold of its inbuilt commands. Thanks.