echo
E299158
echo is a standard Unix command-line utility that outputs its arguments as text, commonly used in shell scripts and command prompts.
All labels observed (1)
| Label | Occurrences |
|---|---|
| echo canonical | 1 |
Statements (56)
| Predicate | Object |
|---|---|
| instanceOf |
Unix command
ⓘ
command-line utility ⓘ core command in Unix-like systems ⓘ shell builtin ⓘ |
| availableIn |
BSD
ⓘ
Linux ⓘ POSIX-compliant shells ⓘ Unix ⓘ Windows command environments with Unix tools installed ⓘ macOS ⓘ |
| canBeRedirectedTo |
files
ⓘ
other processes ⓘ pipes ⓘ |
| canWriteTo | standard output ⓘ |
| commonEscapeSequence |
\b
ⓘ
\c ⓘ \n ⓘ \r ⓘ \t ⓘ |
| commonlyUsedIn |
Makefiles
ⓘ
interactive shells ⓘ shell scripts ⓘ system initialization scripts ⓘ |
| defaultBehavior | print arguments separated by spaces followed by a newline ⓘ |
| hasImplementationAs |
external binary
ⓘ
shell builtin in /bin/sh ⓘ shell builtin in bash ⓘ shell builtin in dash ⓘ shell builtin in ksh ⓘ shell builtin in zsh ⓘ |
| introducedIn | Version 2 Unix ⓘ |
| newlineControl | -n suppresses trailing newline in many implementations ⓘ |
| operatingSystemFamily |
Unix
ⓘ
Unix-like ⓘ |
| option |
-E
ⓘ
-e ⓘ -n ⓘ |
| optionSemanticsMayDiffer | true ⓘ |
| portabilityConcern |
behavior of -e and backslash escapes is not fully portable
ⓘ
handling of empty arguments may differ between implementations ⓘ |
| primaryFunction | output its arguments as text ⓘ |
| recommendedAlternativeForPortability | printf ⓘ |
| relatedCommand |
cat
ⓘ
printf ⓘ |
| shellBuiltinIn |
Unix shell
ⓘ
surface form:
Bash
Almquist shell ⓘ
surface form:
Bourne shell
Dash ⓘ KornShell ⓘ Zsh ⓘ
surface form:
Z shell
|
| standardizedIn |
POSIX
ⓘ
Single UNIX Specification ⓘ |
| supportsEscapeSequences | implementationDependent ⓘ |
| typicalUsage |
display text in terminal
ⓘ
generate simple text output in command pipelines ⓘ print variable values in shell scripts ⓘ produce simple status or debug messages ⓘ |
Referenced by (1)
Full triples — surface form annotated when it differs from this entity's canonical label.