Back to Blog
Arnošt Havelka

The Echo Command

Learn how to speak to the terminal.

Start Interactive Lesson
The Echo Command

The echo command is one of the simplest yet most useful commands in the Windows terminal. It allows you to print text to the screen, create files, and control script output. Think of it as the "Hello World" of the command line.

Try the command

Try printing a message to the console!

Build the command
echo
messageThe text you want to display on the screen.
on/offTurns command echoing on or off in scripts.
Terminal
C:\Users\User>echo Hello World > status.txt on

Real-World Examples

Print a simple message:

Command Prompt
C:\Users\User>echo Hello World

Check the status of echo:

Command Prompt
C:\Users\User>echo

Knowledge Check

1 / 2

What does the echo command do?

References

These documentation links provide authoritative details for the commands used in this article.

Up Next

Clear Screen (cls)

Wipe the slate clean.