command — Execute a Simple Command

Synopsis

/usr/bin/command [-p] command-name [argument...] 
/usr/bin/command [-v | -V] command-name
					

Description

You can use the command command to escape commands that a shell would otherwise treat as built-in functions. With command, the shell treats the arguments as a simple command,

If the command-name is the same as the name of one of the special built-in commands, the special properties are not used. In every other respect, if command-name is not the name of a function, the effect of command is the same as omitting command.

The command command also provides information concerning how a command name is interpreted by the shell; see -v and -V.

Options

-p Perform the command search using a default value ...

Get Solaris™ 7 Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.