$ echo
Write arguments to standard output
DOCUMENTEDShell builtinsUbuntu 24.04 LTS baseline
Synopsis
echo [arg ...]
What it does
- `echo` is commonly provided as a shell builtin and may also exist as an external utility.
- For portable scripts where escape-sequence behavior matters, prefer `printf` and consult the shell documentation.
Examples
Print text
echo 'Hello Linux'Print a variable
echo "$HOME"Important details
These examples are intentionally conservative. Command behavior can still depend on filesystem state, permissions, locale, shell, installed package version, and other system configuration.
For exact option semantics, the linked authoritative documentation is the source of truth.