ECHO(1)

โœจ ECHO(1) โœจ โ€” like, the manual page, section 1, user commands bestie ๐Ÿ’–

okay so. picture this: you're in a terminal, you type something, and it just... says it back to you. that's echo. she's the moment, she's the blueprint, she's literally been here since forever. let's get into it ๐ŸŽ€


๐ŸŒธ NAME ๐ŸŒธ

echo โ€” display a line of text

that's it. that's the whole job. she takes what you give her and puts it on the screen. iconic behavior, no notes ๐Ÿ’…


๐Ÿฆ‹ SYNOPSIS ๐Ÿฆ‹

echo [SHORT-OPTION]... [STRING]...
echo LONG-OPTION

two whole moods, bestie. either you hit her with a bunch of short options plus your strings, or you go long-option mode. that's the vibe โœจ


๐Ÿ’– DESCRIPTION ๐Ÿ’–

Echo the STRING(s) to standard output.

so real. she takes your STRING(s) and she puts them on stdout. like a little messenger fairy ๐Ÿงš but with fewer wings and more newlines.

  • -n โ€” do not output the trailing newline. she just keeps talking and never hangs up the phone, yk?
  • -e โ€” enable interpretation of backslash escapes. this is the one that unlocks all the secret menu codes ๐Ÿ‘‘
  • -E โ€” disable interpretation of backslash escapes. this is the default, so if you do nothing, you get nothing fancy. neutral energy.
  • --help โ€” display this help and exit. she'll tell you how to use her and then dip ๐Ÿ™ˆ
  • --version โ€” output version information and exit. she'll tell you who she is and then also dip.

๐ŸŒˆ if -e is in effect, the following sequences are recognized ๐ŸŒˆ

this is the good part. the lore. when -e is on, these little backslash codes actually do something:

  • \\ โ€” backslash
  • \a โ€” alert (bell) ๐Ÿ”” yes it can literally beep at you
  • \b โ€” backspace
  • \c โ€” produce no further output ๐Ÿ›‘ she stops mid-sentence. dramatic.
  • \e โ€” escape
  • \f โ€” form feed
  • \n โ€” new line
  • \r โ€” carriage return
  • \t โ€” horizontal tab
  • \v โ€” vertical tab
  • \0NNN โ€” byte with octal value NNN (1 to 3 digits)
  • \xHH โ€” byte with hexadecimal value HH (1 to 2 digits)

memorize these. they're the cheat codes. fr fr ๐Ÿ’œ


โš ๏ธ important lore drop, bestie: your shell may have its own version of echo, which usually supersedes the version described here. so the one you're actually running might be a completely different girl. please refer to your shell's documentation for details about the options it supports. don't come for this manpage when bash pulls a fast one on you ๐Ÿ˜ญ
๐Ÿ’ก also: consider using the printf(1) command instead, as it avoids problems when outputting option-like strings. lowkey the safer bestie when your strings start looking like options.

๐Ÿซถ AUTHOR ๐Ÿซถ

Written by Brian Fox and Chet Ramey.

shoutout to the OGs. they cooked. periodt. ๐Ÿ‘‘


๐Ÿ› REPORTING BUGS ๐Ÿ›

found a bug? spill. not in the group chat, in the bug tracker:


Copyright ยฉ 2026 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.

This is free software: you are free to change and redistribute it.

There is NO WARRANTY, to the extent permitted by law.

read that again. NO WARRANTY. none. zero. she's free and she's yours and she makes no promises ๐Ÿซ 


โญ SEE ALSO โญ

Full documentation <https://www.gnu.org/software/coreutils/echo>

or available locally via: info '(coreutils) echo invocation'


and that's the whole page, bestie!! go forth and echo your little heart out ๐Ÿ’–โœจ

GNU coreutils 9.12 โ€” September 2026 โ€” that's the version and the date, mwah, signing off ๐Ÿ˜˜๐ŸŽ€

๐Ÿ“ฆ where this page comes from