The Expert Crew

Menu
  • Home
  • Android
  • Apple
  • Linux
  • Windows
  • Reviews
  • How To
  • Gaming
    • Xbox
    • PS
    • Nintendo Switch
  • Web

Binance: Buy BTC & 600+ Crypto Ethereum, USDC, XRP and Altcoins with USD Securely

Join Now & Claim Free Bitcoin
Home
Windows
How to switch Command prompt directory in Windows 10/11

How to switch Command prompt directory in Windows 10/11

November 4, 2021

The Command Prompt, also known as cmd.exe, is a command line interpreter in the Windows operating system that has been in use since the DOS days of Microsoft operating systems. The command prompt, which is available as an alternative to the Windows GUI, provides far more control and functionality to the average Windows user than the normal GUI ever could. However, before you can do anything with the Command prompt, you’ll need to learn how to change directories in it. We’ve covered some of the simplest ways to change your Command prompt directory in Windows 10/11 in this article.

How to switch Command prompt directory in Windows 10/11

Let’s get started.

Related: How to Backup Files in Windows 11 and downgrade to Windows 10

How to change the Command prompt directory

On Windows 10/11, there are a variety of options for changing the Command Prompt directory. First, we’ll look at the cd command, which is probably the most straightforward of them all. Let’s get started.

Method 1: Change your Command prompt directory with cd command

The cd command, which stands for Change Directory, allows you to easily move from one directory (folder) to another.

Simply press Enter after typing ‘cd’ into the Command prompt. You’ll be immediately taken to the top of your Command prompt directory. You’ll be taken to the root directory in the Windows “C:” drive, as you can see on your Command prompt screen.

Simply type cd followed by the directory name to get to a specific location. For example, we went to the Downloads directory, which is located in the root directory of our Windows 10 installation.

You may need to enclose the name in quotes for multiple word directories, such as cd “folder1” – one tip here is that you can start typing a directory name and then hit the tab key, and Windows will fill in the name for you. If you have multiple directories with similar names (for example, files 1, files 2, files 3, etc. ), keep pressing the tab key to cycle through the possibilities.

Alternatively, instead of going straight to the root directory, you can add.. after the cd command to return to the previous folder. So, as we did in Windows 11, open your Command prompt, type cd…, and hit Enter.

Related: How to enable Dynamic Refresh Rate on Windows 11

Method 2: Changing the drive in Command prompt

If you want to change your directory completely, type the drive name followed by :. So, if you’re currently in the “C:” drive and want to switch to your “D:” drive, simply type “D:” in the Command prompt and press Enter.

Another thing to remember is that the Command prompt is case-insensitive, which means it accepts both capital and lowercase letters. It doesn’t matter if you type “D:” or “d:”; the Command prompt will treat them both the same.

The dir command is another command that deserves special attention. You’ll see a list of files and folders inside the parent directory if you type dir in the Command prompt.

Now, if you want to go inside a specific directory from here, simply use the cd command, followed by the directory’s name, as we did earlier.

Related: How to Change Account Name in Windows 10/11

Method 3: Change directories in CMD by dragging the folder

Here, you can use both the GUI and the Command prompt. In the Command prompt, type cd, then drag the folder you want to move into the Terminal and press Enter.

The command prompt will switch to the desired folder right away.

Changing directories in Command prompt

If you want to become a Terminal pro, changing your terminal directories is just one of the many hacks you’ll learn along the way. Make no mistake: this is just the beginning, and you’ll learn a lot more as you delve deeper into the Command prompt.

Related: Easiest ways to edit host file in Windows 11

People also ask

How do I switch directories in command prompt?

You can quickly change to the folder you want to open in Command Prompt if it’s on your desktop or already open in File Explorer. Press Enter after typing cd followed by a space, dragging and dropping the folder into the window. The command line will reflect the directory you switched to.

How do I change the path in Windows 10 command prompt?

  1. In Search, search for and then select: System (Control Panel)
  2. Click the Advanced system settings link.
  3. Click Environment Variables.
  4. In the Edit System Variable (or New System Variable) window, specify the value of the PATH environment variable.
  5. Reopen Command prompt window, and run your java code.

How do I change the directory in Windows 10?

How to change directory in CMD on Windows 10 via Command line
  1. Open the Command prompt (CMD)in Windows.
  2. Type command dir to get a list of all directories.
  3. Now type CD (Change directory) along with the name of the directory you want to navigate.
Share
Tweet
Pinterest
Reddit
Tumblr
Vkontakte
Prev Article
Next Article

Related Articles

How to Fix the Windows Update and Microsoft Store 0x80070424 Error
Here’s how to fix the dreaded 0x80070424 error that keeps …

How to Fix the Windows Update and Microsoft Store 0x80070424 Error

How to Change Mouse Primary Button on Windows 11?
The mouse left button, which is used as the Mouse …

How to Change Mouse Primary Button on Windows 11?

When Windows Calculator Doesn’t Work, Here Are 7 Solutions
If your Windows Calculator Doesn’t Work, there are a few …

When Windows Calculator Doesn’t Work, Here Are 7 Solutions

How to Install and Run the Nginx Server on Windows
Nginx is a very popular web server on Linux and …

How to Install and Run the Nginx Server on Windows

How to Enable Hybrid Sleep in Windows 11
For a long time, Windows has had a built-in feature …

How to Enable Hybrid Sleep in Windows 11

No Responses

  1. Pingback: How to prevent Microsoft Windows 10 feedback
  2. Pingback: How to connect to your Windows 10 PC via Remote Desktop Connection

Win an iPhone 13 Pro Max!

Related Posts

  • How to Use Microsoft Safety Scanner in Windows 11
    How to Use Microsoft Safety Scanner in Windows 11

Featured Products

  • Hostinger Web Hosting Review
    Hostinger Web Hosting Review
  • HostGator Web Hosting Review
    HostGator Web Hosting Review
  • Bluehost Web Hosting review
    Bluehost Web Hosting review
  • Best Web Hosting Services: The Top Web Hosts of 2022
    Best Web Hosting Services: The Top Web …
  • Binance Review 2022 – Should You Use It?
    Binance Review 2022 – Should You Use …

The Expert Crew

Linux & Windows 10/11 & Android Tips, Tricks, Help, Support, Downloads, Features
Copyright © 2022 The Expert Crew
About us | Contact Us | Disclaimer | Privacy Policy | Terms of Service