commands

echo — print simple text

Bash builtin normally writes arguments separated by spaces and ends with LF. Option and backslash behavior vary; use printf for arbitrary or formatted text. Example assumes a fresh text-streams lab fixture.

Formal Syntax & Structure

linux syntaxlinux
echo [ARGUMENT]...

Parameters & Attributes

NameTypeDescription
ARGUMENToperandSimple fixed text

Return Value

exit status and output

Bash echo writes its interpreted arguments and normally returns 0, with nonzero on a write error. Output can differ by options and shell settings; use printf for controlled literal output.

Working Example

Example Snippetlinux
echo ready
Linux Reference