CMD Master
Back to Blog
Arnošt Havelka

Practical: Relative Paths

Navigate like a pro using .. and .

Start Interactive Lesson
Practical: Relative Paths

Practical: Relative Paths

Stop typing full paths like C:\Users\Name\Documents. Master relative paths to move faster.

The Mission

You are deep inside C:\Project\src\components. You need to move a file to C:\Project\assets.

Step 1: Check where you are

Command Prompt
C:\Users\User>cd

Step 2: Use Relative Paths

Instead of move file.img C:\Project\assets, go up two levels (..\..) to Project, then down into assets.

Command Prompt
C:\Users\User>move logo.png ..\..\assets

Step 3: Verify

Check the assets folder without leaving your current spot.

Command Prompt
C:\Users\User>dir ..\..\assets

Knowledge Check

1 / 2

What does '..' represent?

Up Next

Practical: Tasklist

Scenario: identifying memory hogs.