And 15 years after the release of the operating system with a graphical interface, the operating system retains the ability to work with text commands. But now, instructions for working with DOS commands are not so common. Let's find out which command when working in the terminal should be used to navigate to another folder.
Instructions
Step 1
The "chdir" command (from Change Directory) also has an abbreviated spelling - "cd". To go to the parent folder (that is, one level up), you need to enter in the terminal command line:
cd..
To go to the root folder of the drive we are currently on, enter:
cd
To get into one of the subdirectories of the current directory, just type its name separated by a slash. For example:
cd / book1
If you need to go to a specific directory on the current disk, you must specify its full path. For example, to go to a folder named "book1", which is located inside the "Audiobooks" folder on the "C" drive, the command should look like this:
cd C: Audiobooksook1
If there is a space in the folder name, then sometimes just typing the full path to the required directory is not enough, you should enclose this path in quotes:
cd "C: Program Filesmsn gaming zone"
This is only required when so-called "command processor extensions" are enabled. They are disabled by the command
cmd e: off
In order to switch to another disk, you need to add the / d modifier to the cd command. For example, to go to drive D:
cd / d D:
And the command to go to a specific directory on another drive (for example D: TempImageDrive) will look like this:
cd / d D: TempImageDrive
Step 2
And finally, about two useful terminal options:
1. In the terminal, you can use the mouse to paste the copied text. That is, there is no need to type a long path to the required folders every time. It is enough to copy it in the address bar of the explorer and paste it into the command line of the terminal by right-clicking and selecting the corresponding item in the context menu.
2. The terminal has built-in command help. To get, for example, help about the "chdir" command, just type:
chdir /?