Unix and Linux Discussions Tagged with command |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
1 |
12,720 |
UNIX for Beginners Questions & Answers |
|
|
|
5 |
11,024 |
UNIX for Advanced & Expert Users |
|
|
|
1 |
2,300 |
UNIX for Beginners Questions & Answers |
|
|
|
17 |
100,997 |
Shell Programming and Scripting |
|
|
|
2 |
10,862 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
40,436 |
Shell Programming and Scripting |
|
|
|
2 |
3,305 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
44,129 |
Shell Programming and Scripting |
|
|
|
3 |
42,926 |
Shell Programming and Scripting |
|
|
|
1 |
5,691 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
9,379 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
14,080 |
UNIX for Beginners Questions & Answers |
|
|
|
5 |
2,570 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
4,487 |
UNIX for Beginners Questions & Answers |
|
|
|
6 |
3,810 |
UNIX for Beginners Questions & Answers |
|
|
|
13 |
58,917 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
1,533 |
UNIX for Beginners Questions & Answers |
|
|
|
14 |
7,822 |
UNIX for Beginners Questions & Answers |
|
|
|
6 |
4,628 |
UNIX for Beginners Questions & Answers |
|
|
|
8 |
5,817 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
6,256 |
UNIX for Beginners Questions & Answers |
|
|
|
5 |
4,679 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
11,407 |
Shell Programming and Scripting |
|
|
|
2 |
9,436 |
UNIX for Advanced & Expert Users |
|
|
|
4 |
4,288 |
UNIX for Beginners Questions & Answers |
|
|
|
9 |
3,165 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
4,701 |
Shell Programming and Scripting |
|
|
|
1 |
9,194 |
Shell Programming and Scripting |
|
|
|
6 |
15,889 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
16,738 |
Programming |
|
|
|
7 |
5,905 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
5,043 |
UNIX for Beginners Questions & Answers |
|
|
|
0 |
20,659 |
OS X (Apple) |
|
|
|
3 |
5,369 |
UNIX for Beginners Questions & Answers |
|
|
|
6 |
8,711 |
Shell Programming and Scripting |
|
|
|
2 |
13,038 |
Shell Programming and Scripting |
|
|
|
2 |
2,820 |
UNIX for Beginners Questions & Answers |
|
|
|
10 |
9,784 |
Shell Programming and Scripting |
|
|
|
3 |
3,409 |
UNIX for Beginners Questions & Answers |
|
|
|
5 |
13,562 |
UNIX for Advanced & Expert Users |
command(1) General Commands Manual command(1)
NAME
command - execute a simple command
SYNOPSIS
command_name [argument ...]
DESCRIPTION
enables the shell to treat the arguments as a simple command, suppressing the shell function lookup.
If command_name is not the name of the function, the effect of is the same as omitting command.
Operands
recognizes the following operands:
command_name The name of a HP-UX command or a shell built-in command.
argument One or more strings to be interpreted as arguments to command_name.
The command is necessary to allow functions that have the same name as a command to call the command (instead of a recursive call to the
function).
Nothing in the description of is intended to imply that the command line is parsed any differently than any other simple command. For
example,
is not parsed in any special way that causes or to be treated other than a pipe operator or semicolon or that prevents function lookup on b
or c.
EXTERNAL INFLUENCES
Environment Variables
determines the search path used during the command search.
RETURN VALUE
exits with one of the following values:
o If fails:
126 The utility specified by the command_name is found but not executable.
127 An error occurred in the utility or the utility specified by command_name is not found.
o If does not fail:
The exit status of is the same as that of the simple command specified by the arguments: command_name[argument ...]
EXAMPLES
Create a version of the command that always prints the name of the new working directory whenever it is used:
cd() {
command "$@" >/dev/null
pwd
}
Circumvent the redefined command above, and change directories without printing the name of the new working directory:
SEE ALSO
getconf(1), sh-posix(1), confstr(3C).
STANDARDS CONFORMANCE
command(1)