Print text
low risk
Writes its arguments to standard output. Behavior of -e/-n differs between shells; printf is more portable.
| Flag | Meaning |
|---|---|
-n | Do not print the trailing newline |
-e | Interpret backslash escapes (bash) |
echo "$PATH"Show PATH · explain & risk-check →echo "line" >> file.txtAppend a line to a file · explain & risk-check →Reference text is hand-written and may be incomplete — check man echo for your version. Test destructive commands on a non-production system first.