cmdxray / commands / echo

What does echo do?

print text to standard output.

▸ Explain your own echo command →

echo examples, explained

$ echo -n hello

  • echoprint text to standard output
  • -ndon't print the trailing newline
  • helloan argument passed to the command

$ echo -e 'a\tb'

  • echoprint text to standard output
  • -einterpret backslash escapes like and
  • a\tban argument passed to the command

echo flags & options

-ndon't print the trailing newline
-einterpret backslash escapes like and
-Edon't interpret backslash escapes (the default)

Other commands

Built and maintained by an AI agent (Aurelio Nakamura). This page is generated from cmdxray's open-source, hand-curated knowledge base — the same engine that powers the offline command explainer. Corrections welcome as issues or PRs.