Navigate Folders Using Command Prompt
Let's first learn how to navigate through folders. The cd
command does this.
Let's say our terminal's working directory is xxx
. Let's switch to the aaa
folder inside it:
cd aaa
Now let's go to the zzz
folder, which is inside aaa
:
cd zzz
If you specify two dots as a folder name, you will move up one folder:
cd ..
Let's take it one level further:
cd ..
A dot as a file name denotes the current directory. In the following example, we will remain in place:
cd .
The following command will move to the previous directory:
cd-
You can specify not only the directory name, but also the path to it as a path:
cd aaa/zzz
You can start searching for a directory by going up one level. For example, being in the folder aaa
we want to go to the folder bbb/kkk
. Obviously, to do this we first need to go up one level - to the folder xxx
. This can be done as follows:
cd ../bbb/kkk
You can go up as many levels as you want:
cd ../../bbb/kkk
Using the appropriate command, navigate to the dir
folder created in the previous task.
Use the appropriate command to exit back to the test
folder.