Changing the directory in the Windows Command Prompt is a simple yet essential skill for navigating your file system. The cd command, also known as chdir (change directory), is used to change the current working directory or folder.
Go Back to the Top of the Directory Tree
To go all the way back to the root of the current drive (the top of the directory tree), type the following command and press the Enter key:
cd\
Go to a Specific Directory
To navigate to a specific directory, type the cd command followed by a space and the exact path of the folder, and then press Enter:
cd C:\Users\Username\Documents
Move Up One Directory Level
If you want to move up exactly one directory level (to the parent folder), use the double-dot syntax. Type the following command and press Enter:
cd..
Mastering these simple cd commands will allow you to quickly and efficiently navigate through folders directly from the Windows Command Prompt.