ECHO(1) General Commands Manual ECHO(1)

echowrite arguments to standard output

echo [-Een] [string...]

echo buffers all string together with a final newline and then does a single write to standard output. If there is no string, only the newline is written.

The -- operand, which generally terminates option processing, is treated as part of string.

Do not print the trailing newline character.
Toggle off the support for escape codes. (default)
Toggle on support for the following escape codes:
\a
Write an <alert>.
\b
Write a <backspace>.
\c
Clear the rest of the output, including the trailing newline.
\f
Write a <form-feed>.
\n
Write a <newline>.
\r
Write a <carriage-return>.
\t
Write a <tab>.
\v
Write a <vertical-tab>.
\\
Write a <backslash> character.
\0num
Write an octet corresponding to the zero, one, two, or three digits octal number num. For example ‘\0’ writes the NULL byte, and ‘\01’ writes a octet of value 1.

The echo utility exits 0 on success, and >0 if an error occurs.

printf(1)

Should be compliant with the IEEE Std 1003.1-2024 (“POSIX.1”) specification.

Support for -e and -E options was added in utils-std 0.0.3.

Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>

October 31, 2024 Linux