Open System Services Shell and Utilities Reference Manual (G06.27+, H06.04+)
command(1) OSS Shell and Utilities Reference Manual
NAME
command - Treats command arguments as a simple command
SYNOPSIS
command [-p] command_name [argument ...]
The command command causes the shell to treat the arguments to command as a simple
command and suppresses the default shell function lookup.
FLAGS
-p Performs the command search using a default value for the path that is guaranteed to
find all of the standard utilities.
DESCRIPTION
The command command allows you to run the following commands:
• User-defined commands whose names correspond to shell built-in commands.
• System commands whose names correspond to shell built-in commands.
The command_name argument specifies the name of a utility. The one or more optional argu-
ments to command_name specify strings treated as arguments to the specified utility.
EXAMPLES
To ensure execution of the simple command pwd instead of the pwd shell built-in command,
enter:
command -p pwd
The preceding command displays the full pathname of the current directory and does not per-
petuate a display of the current directory location created by links, as the shell built-in command
might do.
EXIT VALUES
127 An error occurred in the command command, or the utility specified by the
command_name argument could not be invoked.
If no error occurs, the exit status of command is that of the command invoked by the arguments
to command.
2−64 Hewlett-Packard Company 527188-004