Primary
echo ⚬ˢʰ|Definition|1st|20260523112531-00-⌔
echo (command)
echo is a shell command that writes input text to standard output. It is available in many operating system and shells. It is often used in a shell script to log status, provide feedback to the user and for debugging. For an interactive session, output by default displays on the terminal screen, but output can be re-directed to a file or piped to another process.1
Many shells implement
echoas a builtin command rather than an external application as are many other commands.Multiple, incompatible implementations of
echoexist in different shells. Some expand escape sequences by default, and some do not. Some accept options, and some do not. The POSIX specification2 leaves the behavior unspecified if the first argument is-nor any argument contains backslash characters while the Unix specification (XSI option in POSIX) mandates the expansion of some sequences and does not allow any option processing. In practice, manyechoimplementations are not compliant in the default environment. Because of these variations,echois considered a non-portable command3 and theprintfcommand (introduced in Ninth Edition Unix) is preferred instead.Printed 2026-06-29.
Link to original Footnotes
Rügheimer, Hannes; Spanik, Christian (September 12, 1988). AmigaDOS quick reference. Grand Rapids, Mi: Abacus. ISBN 9781557550491 – via Internet Archive. ↩
echo: write arguments to standard output – Shell and Utilities Reference, The Single UNIX Specification, Version 5 from The Open Group ↩“Autoconf documentation on echo portability”. Free Software Foundation. Archived from the original on 10 December 2019. Retrieved 24 July 2016. ↩
echo ⚬ᶜᵐᵈ|docu|1st|20260609142701-00-◊
echo | Microsoft Learn
Link to original
(echo:: @ ᯤ)
Secondary
• • •