echo
echo: display a line of text.
Synopsis
echo [-n] [word…]
Description
echo writes its words to standard output, separated by single spaces, followed by a new line.
Options
- -n
- Do not write the trailing new line. Only a first argument of -n is taken as the option; anywhere else it is a word.
Exit status
Always 0.
Examples
echo hello world
echo -n "no new line"
echo $PATH
Notes
echo is a program, not a shell builtin. It does not interpret backslash escapes, and has no -e or -E.
See also
sh(1), cat(1)