Skip to content


Print a string to the current output device.


echo [--nonewline] [string]


Option Description
string The string to print.
-n, --nonewline Supress printing of the newline character


This command echos the args to the current output stream. This is normally stdout but can be set to a variety of channels. If an arg is --nonewline then no newline is printed at the end of the printed strings. Otherwise a newline is printed after printing all the given args. Echo is the easiest way to add user comments or identification strings in a log file.


This example will add these comments to the screen and any open log file.

echo This is the first run with disks = 12

See Also