command

Run command with args suppressing the normal shell function lookup.

Syntax
      command [-pVv] command [arg...]

Key
    -p   Use a default value for PATH that will find all the standard utilities.

    -v   Print a description of command

    -V   Print a verbose description of command

Only builtin commands or commands found in the PATH are executed.

Exit Status
If the -V or -v option is supplied, the exit status is 0 if command was found, and 1 if not.
If neither option is supplied and an error occurred or command cannot be found, the exit status is 127.
Otherwise, the exit status of the command builtin is the exit status of command.

This is a BASH shell builtin, to display your local syntax from the bash prompt type: help command

Example

$ command ls

“I'm not dumb. I just have a command of thoroughly useless information” - Bill Watterson

Related macOS commands:

builtin - Run a shell builtin.
chroot - Run a command with a different root directory.
crontab
- Schedule a command to run at a later time.
exec - Execute a command.
if - Conditionally perform a command.
nohup - Run a command immune to hangups.
.source - Run commands from a file.
su - Run a command with substitute user and group id.
type - Describe a command.


Copyright © SS64.com 1999-2018
Some rights reserved