1 of the initial points you will have to have to discover as you develop into extra common with Command Prompt on Home windows 10 is how to transform directories in the operating system’s file system. There are a couple of techniques you can do this, so we’ll wander you by means of them.
Initially, style “cmd” in the Windows Search bar to open Command Prompt, and then choose “Command Prompt” from the research success.
With Command Prompt opened, you are all set to adjust directories.
Table of Contents
Improve Directories Using the Drag-and-Drop Process
If the folder you want to open up in Command Prompt is on your desktop or already open in File Explorer, you can immediately improve to that listing. Type cd
followed by a house, drag and fall the folder into the window, and then push Enter.
The listing you switched to will be mirrored in the command line.
Improve Directories In Command Prompt
It is not generally convenient to open up File Explorer and drag and fall. That is why it is amazing that you can also style a command to change directories appropriate in Command Prompt.
Linked: 10 Useful Home windows Commands You Need to Know
Say, for illustration, you are in your person folder, and there’s a “Documents” directory in the up coming file route. You can form the next command in Command Prompt to swap to that listing:
cd Paperwork
Observe that this only performs if you’re in the quick file structure. In our circumstance, that would be (person folder) > Paperwork. In our latest directory, we wouldn’t be in a position to use this system to bounce to a listing nested two levels down.
So, let’s say we’re now in the user folder and want to go to the “How-To Geek” folder, which is nested in “Documents.” If we attempt to soar straight to “How-To Geek” without the need of first heading to “Documents,” we get the mistake demonstrated in the image underneath.
Let us take issues 1 directory at a time, for now. As we pointed out beforehand, we’re at the moment in our consumer folder. We type cd Paperwork
in Command Prompt to take a look at “Documents.”
We’re now in the “Documents” folder. To go down another level, we type cd
on the command line adopted by the title of that directory.
Now, let us say we’re back again in our consumer folder and want to skip that excess action and jump two directories down. In our situation, this would be our “How-To Geek” folder. We kind the adhering to command:
cd DocumentsHow-To Geek
This will allow us to transfer two directory ranges with one particular command.
If you at any time go to the mistaken directory and want to turn back, style the following command:
cd . .
This lets you to shift up a degree.
A Navigation Idea
If you want to be a little bit more efficient with your listing improvements, type cd
on the command line, adopted by the first number of letters of the listing you want. Then, push Tab to autocomplete the directory name.
Alternatively, you can variety cd
, followed by the 1st letter of the listing, and then press Tab various situations till the proper listing seems.
See Listing Contents
If you are at any time misplaced and not positive the place to go up coming, you can see the contents of your latest listing by typing dir
on the command line.
This will give you a trace as to which directory to navigate to following.