Skip to main content

CompTIA A+

Command Prompt Navigation with cd and dir

8 min read

In CompTIA A+ Core 2 (220-1202), Domain 1, Objective 1.5, you're expected to use Microsoft command-line tools for basic navigation. That sounds simple, yet it shows up in real support work more than people expect.

When a user says, "My file is missing," you often need proof, not guesses. Command Prompt helps you find folders fast, confirm what exists, and check where logs landed. That's hard to do if you can't move around with confidence.

This post explains the cd and dir commands, a few high-value switches, and quick troubleshooting habits. The goal is practical skill, the kind you can use during a ticket, not just on an exam.

Understand where you are and how Windows stores files

Command Prompt always operates from a current working directory. Think of it like standing in a hallway. Every step you take depends on where you're already standing. If you forget your location, even correct commands can point to the wrong place.

Windows also uses drive letters. Your main drive is usually C:, while a second disk or USB might be D: or E:. Each drive has its own folder tree. As a result, being "in the right folder" also means being on the right drive.

Paths come in two common forms:

  • Absolute paths start from a known anchor, usually the root of a drive. For example, cd \Users (from anywhere on the same drive) moves you into the Users folder at the drive root.
  • Relative paths start from where you are now. For example, if you're already in C:\Users\Kai, then cd Downloads moves into that subfolder without typing the full path.

Three symbols matter every day:

  • \ points to the root when it appears at the start of a path.
  • . means "this folder" (for example, cd . does nothing, but it's helpful when scripts build paths).
  • .. means "parent folder" (for example, cd .. moves up one level).

Paths are like street addresses. If you omit an apartment number (a folder level), you may arrive at the wrong door.

Command Prompt is case-insensitive, so cd \users works like cd \Users. Still, spelling and spaces must match. Folder names such as Program Files require quotes, or the command breaks mid-name.

Paths and shortcuts you should recognize right away

Most support tasks use a small set of patterns. The root of a drive looks like C:\. Moving into a folder often reads like cd \Windows or cd \Users\Public. Moving up one level is cd .., which is handy after you check a log folder and need to back out.

Quoted paths matter when a name includes spaces. For example, cd "C:\Program Files" works because the quotes keep the name together.

Switching drives is also simple, but easy to forget. If your prompt shows C:\> and your files are on D:, type D: and press Enter. Then run cd \ if you want the root of that drive.

Common mistakes that break navigation (and how to avoid them)

A few errors cause most failed attempts:

Forgetting quotes is the classic one. If you type cd C:\Program Files, Command Prompt reads C:\Program as the target and treats Files as extra text.

Missing backslashes also hurts. cd Windows and cd \Windows are not the same. The first is relative, the second is absolute (from the root of the current drive).

Another frequent issue is being on the wrong drive.

This lesson is part of ExamWizardz Pro

Unlock every lesson, unlimited practice tests, and the AI tutor.

See Pro pricing

or start with a free account