How To Navigate To A Folder In The Command Line

Table of contents:

How To Navigate To A Folder In The Command Line
How To Navigate To A Folder In The Command Line

Video: How To Navigate To A Folder In The Command Line

Video: How To Navigate To A Folder In The Command Line
Video: MS DOS Tutorials - Navigate Between Folders and Drives - Part 2 2024, March
Anonim

In modern operating systems with a graphical interface, the file manager program is used by default to navigate to the desired folder. It is very rare to carry out this operation in the command line interface, but in these cases no special knowledge is required, simple rules for formatting just one DOS command are enough.

How to navigate to a folder in the command line
How to navigate to a folder in the command line

It is necessary

Windows OS

Instructions

Step 1

Launch the command line terminal - open the main menu of the operating system, type "com" on the keyboard and select the "Command line" link in the list of search results. On earlier versions of Windows - such as Windows XP - press the Win + R keyboard shortcut, type cmd, and press Enter.

Step 2

If the desired folder is not located on the system drive, enter the letter of the desired volume, put a colon and press Enter. After that, you can type the command to go to a specific folder on the disk.

Step 3

Use the chdir command or its shorthand cd to navigate to the desired folder. The only required parameter that must be specified along with this command is the path to the folder from the root directory of the disk. Enter it, separating it from the command itself with a space, and then press the Enter key.

Step 4

In the latest Windows operating systems - Vista and Seven - it is possible to launch the command line interface with the command to go to the desired folder already executed. To do this, use the file manager of this operating system - "Explorer". Use it to navigate to the directory you are interested in, press the Shift key and right-click the folder icon. Select the "Open command window" item in the context menu, and the rest - launching the terminal and switching to this folder - will be done by the OS.

Step 5

Windows Explorer can also be used to work with the cd command in an already running command line emulator. First, type the command in the usual way and put a space. In order not to enter the long address of the folder location from the keyboard, copy it in the address bar of the file manager and switch to the command line terminal. In it, the standard Windows hotkeys, including those assigned to the copy and paste operations, do not work, so open the context menu and select the "Paste" line. After that, it remains to press Enter to complete the operation.

Recommended: