Navigation & Files

cd / chdir

  • cd or chdir Displays the current working directory path.
  • cd <path> Changes the directory to the specified path (e.g., cd C:\Projects).
  • cd .. Moves up one directory level toward the root.
  • cd \ Navigates directly to the root folder of the current drive (e.g., C:\).
  • d: (Drive Letter) Switches the active drive to D: (simply typing cd D:\path changes the directory on drive D:, but does not switch your active drive view unless you use cd /d D:\path).
Practice line — try it from memory, then reveal

cd \Windows

Try it safely

Run cd \Windows in the practice shell →

Chapter 1: The Prompt. A sandboxed Command Prompt; nothing touches your PC.