ECHO(1)
π ECHO(1) β General Commands Manual π
okay bestie, listen up, because echo is like... the main character of your terminal and you're about to be obsessed π
β¨ NAME β¨
echo β display a line of text. that's it. that's the whole job. iconic behavior honestly π
πΈ SYNOPSIS πΈ
echo [OPTIONS]... [STRING]...
π¦ DESCRIPTION π¦
Display a line of text. yep. that's literally the entire description. the bar is on the floor and echo still ate π
β¨
π OPTIONS π
-nβ do NOT output the trailing newline. it's giving "no newline, no problem" π«-eβ enable interpretation of backslash escapes (we love a backslash that does something) π₯-Eβ disable interpretation of backslash escapes, and this is the default, so if you do nothing, this is what you get π-h,--helpβ print help. your lil rescue blanket π«Ά-V,--versionβ print version. flex the build number bestie π[STRING]β the text. the content. the moment. π
π EXTRA π
Echo the STRING(s) to standard output. that's the whole vibe: you speak, it repeats, everyone's happy π¦
if -e is in effect, these lil escape sequences get recognized, and ngl they're kind of everything:
\β backslash\aβ alert (BEL) β a lil attention please π¨\bβ backspace\cβ produce no further output β it just stops, no further questions π\eβ escape\fβ form feed\nβ new line (the classic) β\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)
π VERSION π
v(uutils coreutils) 0.12.0 β that's how we're doing it out here π
π₯ EXAMPLES π₯
print a text message. quick note bestie: quotes are optional:
echo "Hello World"
print a message with environment variables:
echo "My path is $PATH"
print a message without the trailing newline:
echo -n "Hello World"
append a message to the file:
echo "Hello World" >> file.txt
enable interpretation of backslash escapes (aka special characters, aka the fun ones):
echo -e "Column 1\tColumn 2"
print the exit status of the last executed command β and heads up, in Windows Command Prompt and PowerShell the equivalent commands are echo %errorlevel% and $lastexitcode respectively:
echo $?
pass text to another program through stdin:
echo "Hello World" | program
π«Ά these examples are provided by the tldr-pages project <https://tldr.sh> under the CC BY 4.0 License. also, please note that, as uutils is a work in progress, some examples might fail β no cap, that's just the truth of it π
and that's the whole page babes π this edition landed 2026-09-25, straight from the ECHO(1) manual in General Commands Manual β go forth and echo, you absolute queen πβ¨
π¦ where this page comes from
- ubuntu stonking: rust-coreutils 0.12.0-1ubuntu2 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms