TechKnowSurge
CompTIA Tech+ 3.2 CompTIA A+ Core 2 1.2 CompTIA A+ Core 2 1.11
InteractiveComputeFree

Navigate the Directories

cd, cd .., mkdir and pwd: work out where each command leaves you, on Windows and on Linux.

⚑ Complete this interactive to capture a CTF flag worth 5 points.

About this interactive

A directory is what the command line calls a folder: the same thing, shown as text instead of a picture. The prompt tells you where you are. C:\Users\demo\Desktop> means you are in Desktop, inside demo, inside Users, on the C drive. The commands from the lesson: - cd (change directory) followed by a name moves you into that directory, inside the one you are in. - cd .. moves you back up one level, to the directory that holds the one you are in. cd ..\.. goes up two. - A path that starts with a backslash (Windows) or a slash (Linux) starts at the top of the drive, wherever you are now: cd \Users goes to C:\Users. - mkdir (make directory) creates a new directory. - pwd (present working directory) prints where you are on Linux. Windows puts a backslash (\) between directory names; Linux uses a forward slash (/). Linux is also case sensitive, so Desktop and desktop are different names there. Where an answer is a whole path, type it as the prompt would show it, without the >. Capital letters do not matter to the checker.

What you'll learn

Aligned to

CompTIA Tech+
3.2 Compare and contrast components of an operating system.
CompTIA A+ Core 2
1.2 Given a scenario, use the appropriate Microsoft command-line tool.
1.11 Identify common features and tools of the Linux client/desktop OS.

Key terms

Directory
A named container in a file system that organizes files and subdirectories into a hierarchical structure, navigated via the command line.
Path
The full address of a file or directory location within a file system hierarchy, expressed as a sequence of directory names separated by slashes or backslashes.
Command Prompt
CMD
The Windows command-line interpreter that provides a text-based interface for executing commands, running scripts, and managing the operating system without a graphical interface. CMD is used for tasks such as file management, network diagnostics, and system configuration.
Folder
A graphical user interface representation of a directory, used to visually organize files and other folders within an operating system.

Topics

Directory Path Command Prompt Linux File Management Interactive Fill In

About TechKnowSurge

TechKnowSurge builds IT and cybersecurity professionals through hands-on, concept-first training built around real understanding — not memorization. Free interactive tools, structured programs, and 25+ years of real-world experience, all in one place.

Explore free tools and programs →