CMD Master
Back to Blog
Arnošt Havelka

Revision 1: DIR & ECHO

Practice what you've learned with DIR and ECHO challenges.

Start Interactive Lesson
Revision 1: DIR & ECHO

Time to put your knowledge to the test! In this revision lesson, you'll practice combining the dir and echo commands you've already learned. These two commands are the foundation of working in the Windows terminal — listing files and printing output. Let's see how well you remember them!

Try the command

Combine DIR options to explore your file system!

Build the command
Terminal
C:\Users\Student>dir Projects /W
Directory of C:\Users\Student\Projects [.] [..] plan.md 1 File(s) 0 Dir(s)

Challenge 1: List and Announce

Use dir to list the current folder, then use echo to print a completion message.

Terminal
C:\Users\Student>dir /w
Terminal
C:\Users\Student>echo Listing complete!

Challenge 2: Create a Log Entry

Use echo to write a message to a file, then use dir to confirm it was created.

Terminal
C:\Users\Student>echo Log started > activity.log

Knowledge Check

1 / 3

Which command lists files in a directory?

References

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

Up Next

The Dir Command

Master the art of listing files.