1. Technology
Send to a Friend via Email
Linux / Unix Command: echo
Command Library

NAME

echo - display a line of text

SYNOPSIS

echo [OPTION]... [STRING]...

DESCRIPTION

NOTE: your shell may have its own version of echo which will supercede the version described here. Please refer to your shell's documentation for details about the options it supports.

Echo the STRING(s) to standard output.

-n
do not output the trailing newline
-e
enable interpretation of the backslash-escaped characters listed below
-E
disable interpretation of those sequences in STRINGs
--help
display this help and exit
--version
output version information and exit

Without -E, the following sequences are recognized and interpolated:

\NNN
the character whose ASCII code is NNN (octal)
\\
backslash
\a
alert (BEL)
\b
backspace
\c
suppress trailing newline
\f
form feed
\n
new line
\r
carriage return
\t
horizontal tab
\v
vertical tab

SEE ALSO

The full documentation for echo is maintained as a Texinfo manual. If the info and echo programs are properly installed at your site, the command
info echo

should give you access to the complete manual.


Important: Use the man command (% man) to see how a command is used on your particular computer.

>> Linux/Unix Command Library

>> Shell Command Library

You can opt-out at any time. Please refer to our privacy policy for contact information.

Discuss in my forum

©2014 About.com. All rights reserved.