Back to Blog
Arnošt Havelka

Revision 2: Navigation & File Reading

Combine mkdir, cd, and type to set up and navigate workspaces efficiently.

Start Interactive Lesson
Revision 2: Navigation & File Reading

Revision 2: Navigation & File Reading

Ready to test your navigation skills? This revision challenges you to combine multiple commands into efficient workflows. You'll create folders, navigate into them, and read file contents — the core of productive terminal work.

Usage:mkdir
[folder]
&& cd
[folder]
&&
Command chaining operator — runs the second command only if the first succeeds.
mkdir
Creates a new directory.
cd
Changes the current directory.

Challenge 1: Create and Navigate

Use command chaining to create a new folder and move into it in a single terminal command. This is a crucial productivity skill — combining operations reduces repetition and keeps your workflow smooth.

Command Prompt
C:\Users\User>mkdir review && cd review

Notice how both commands execute in sequence. If mkdir fails, cd won't run. This prevents errors and ensures your workspace is properly set up before you navigate into it.

Challenge 2: Read and Review

Now that you're in your workspace, use type to read a checklist file and verify the next steps of your workflow.

Command Prompt
C:\Users\User>type checklist.txt

The type command displays file contents directly in your terminal. This is essential for reviewing configurations, logs, and task lists without opening a separate editor.


Knowledge Check

1 / 3

What does the && operator do in Windows Command Prompt?

References

These Microsoft Learn and Windows documentation links provide authoritative details for the commands used in this article.