Unix and Linux Discussions Tagged with command |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
1 |
20,396 |
UNIX for Beginners Questions & Answers |
|
|
|
5 |
17,716 |
UNIX for Advanced & Expert Users |
|
|
|
1 |
5,561 |
UNIX for Beginners Questions & Answers |
|
|
|
17 |
167,228 |
Shell Programming and Scripting |
|
|
|
2 |
16,108 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
64,483 |
Shell Programming and Scripting |
|
|
|
2 |
7,016 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
71,942 |
Shell Programming and Scripting |
|
|
|
3 |
69,587 |
Shell Programming and Scripting |
|
|
|
1 |
10,379 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
17,605 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
23,634 |
UNIX for Beginners Questions & Answers |
|
|
|
5 |
6,171 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
9,204 |
UNIX for Beginners Questions & Answers |
|
|
|
6 |
7,912 |
UNIX for Beginners Questions & Answers |
|
|
|
13 |
70,138 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
3,805 |
UNIX for Beginners Questions & Answers |
|
|
|
14 |
15,102 |
UNIX for Beginners Questions & Answers |
|
|
|
6 |
9,257 |
UNIX for Beginners Questions & Answers |
|
|
|
8 |
10,900 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
11,878 |
UNIX for Beginners Questions & Answers |
|
|
|
5 |
8,757 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
16,274 |
Shell Programming and Scripting |
|
|
|
2 |
14,722 |
UNIX for Advanced & Expert Users |
|
|
|
4 |
7,812 |
UNIX for Beginners Questions & Answers |
|
|
|
9 |
7,580 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
7,477 |
Shell Programming and Scripting |
|
|
|
1 |
12,601 |
Shell Programming and Scripting |
|
|
|
6 |
21,971 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
24,726 |
Programming |
|
|
|
7 |
10,459 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
10,249 |
UNIX for Beginners Questions & Answers |
|
|
|
0 |
24,881 |
OS X (Apple) |
|
|
|
3 |
8,953 |
UNIX for Beginners Questions & Answers |
|
|
|
6 |
12,789 |
Shell Programming and Scripting |
|
|
|
2 |
17,922 |
Shell Programming and Scripting |
|
|
|
2 |
5,291 |
UNIX for Beginners Questions & Answers |
|
|
|
10 |
15,026 |
Shell Programming and Scripting |
|
|
|
3 |
6,607 |
UNIX for Beginners Questions & Answers |
|
|
|
5 |
16,468 |
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)