Unix and Linux Discussions Tagged with command |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
1 |
20,711 |
UNIX for Beginners Questions & Answers |
|
|
|
5 |
18,044 |
UNIX for Advanced & Expert Users |
|
|
|
1 |
5,708 |
UNIX for Beginners Questions & Answers |
|
|
|
17 |
168,239 |
Shell Programming and Scripting |
|
|
|
2 |
16,330 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
64,929 |
Shell Programming and Scripting |
|
|
|
2 |
7,182 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
72,448 |
Shell Programming and Scripting |
|
|
|
3 |
69,838 |
Shell Programming and Scripting |
|
|
|
1 |
10,556 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
18,035 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
24,056 |
UNIX for Beginners Questions & Answers |
|
|
|
5 |
6,312 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
9,400 |
UNIX for Beginners Questions & Answers |
|
|
|
6 |
8,101 |
UNIX for Beginners Questions & Answers |
|
|
|
13 |
70,609 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
3,933 |
UNIX for Beginners Questions & Answers |
|
|
|
14 |
15,492 |
UNIX for Beginners Questions & Answers |
|
|
|
6 |
9,433 |
UNIX for Beginners Questions & Answers |
|
|
|
8 |
11,142 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
12,080 |
UNIX for Beginners Questions & Answers |
|
|
|
5 |
8,929 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
16,333 |
Shell Programming and Scripting |
|
|
|
2 |
15,021 |
UNIX for Advanced & Expert Users |
|
|
|
4 |
7,967 |
UNIX for Beginners Questions & Answers |
|
|
|
9 |
7,810 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
7,512 |
Shell Programming and Scripting |
|
|
|
1 |
12,636 |
Shell Programming and Scripting |
|
|
|
6 |
22,223 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
25,081 |
Programming |
|
|
|
7 |
10,708 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
10,451 |
UNIX for Beginners Questions & Answers |
|
|
|
0 |
25,081 |
OS X (Apple) |
|
|
|
3 |
9,127 |
UNIX for Beginners Questions & Answers |
|
|
|
6 |
12,836 |
Shell Programming and Scripting |
|
|
|
2 |
18,015 |
Shell Programming and Scripting |
|
|
|
2 |
5,404 |
UNIX for Beginners Questions & Answers |
|
|
|
10 |
15,082 |
Shell Programming and Scripting |
|
|
|
3 |
6,772 |
UNIX for Beginners Questions & Answers |
|
|
|
5 |
16,614 |
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)