🧀 Learn Linux

Common · Let commands collaborate

echo: Output a piece of text

Put in free practice

Syntax

echo [-neE] Text…

Options

-n
Do not append newlines
-e
Explanation \n, \t
-E
Escapes are not interpreted

Examples

echo "hello Linux"

Usage and sandbox support

When precise control of the format is required, printf is usually more suitable.

Hands-on exercises

Full documentation ↗

Related commands