How to use the command line to go to the folder?

Using the Windows command line, you can perform most of the functions that are used through the graphical interface. Not only changing the system parameters, but also the usual movement through folders is possible with the help of this tool. If for some reason the explorer is not available to you, then you can always go to the folder on the command line. In this instruction we will understand how to work with directories through cmd.

Step One: Run Command Prompt

It all starts with the launch of this application. You can do this in a variety of ways that are relevant for all current versions of the Windows operating system. These include Windows XP, 7, 8, 10.

at the command prompt go to the folder

So, you can run the command line with the following methods:

  1. Launch the Run application and use the cmd command.
  2. Find the utility in the search bar.
  3. Run the program through the Start menu.

There is also an option to run cmd from Explorer. This allows you to navigate to a folder on the command line without entering a large number of commands. For example, you need to open cmd with the specified path to the System32 folder. To do this, first open the directory in the explorer, then click RMB in the free space and click on the item "Open command window" in the menu. The desired application will appear on the screen with a pre-registered link to the System32 folder.

how to go to the folder through the command line

Step two: remember the necessary commands

To go to the folder from the Windows command line, just remember a number of simple combinations. They are presented below:

  • cd - this command is used for any interactions with folders;
  • dir - display all content in the selected directory;
  • cls - clear the cmd screen from previous information and commands;
  • help - showing general help on all command line features;
  • help CD - help on a separate command;
  • cd .. - move to the root folder;
  • dir * .exe - shows a list of all files in this directory that have the .exe extension.

With the help of the presented combinations, you can easily go to the folder from the command line and find the files you need. Now consider this procedure with a simple example.

windows command line go to folder

Step Three: Using Teams in Practice

Suppose a user needs to open the drivers directory, which is located in the system partition of the hard drive in the Windows / system32 folder. To do this, do the following:

  1. Open a command prompt and type cd C: // Windows / System32 / drivers, then press Enter to go.
  2. The requested directory will appear in the application window. You can open it by entering the full path (presented above), or by navigating through each folder separately. For example, we enter cd C: // Windows /, then in the opened directory we enter cd system32 / and so on.
  3. In order not to enter the directory names manually, you can do the following. Type cd and type the first letters of the name. After that, use Tab to scroll through the entire contents of the folder. To go through the command line to the directory, simply press Enter.

To change the hard disk partition, you need the cd .. * drive letter *: // * folder path *. For example, cd .. E: // Programs. After that, you make the transition according to the rules described in the instructions above.

Syntax

Now you know how to navigate to a folder on the command line. The main thing from the rules is the correct input of all commands. After cd, be sure to put a space. The same goes for combined commands, for example cd ..

After the hard drive index, you must put a colon and two oblique lines - //. By the way, you can use // or \\ without any differences for the command. Using the up and down arrows, the user can move between previously typed text. If you use the same command several times, then it makes sense to use such a function.

Going to the folder from the Windows command line turned out to be quite simple. If you have problems with the operability of the conductor, then this situation will not catch you by surprise.

Source: https://habr.com/ru/post/C12293/


All Articles