CMD Master
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

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.

Usage:echo
[message]
[> filename]
[on | off]
message
The text you want to display on the screen.
>
Redirects output to a new file (overwrites).
>>
Appends output to an existing file.
on/off
Turns command echoing on or off in scripts.

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?