Practical: Relative Paths
Stop typing full paths like C:\Users\Name\Documents. Master relative paths to move faster.
.= Current Directory..= Parent Directory (Up one level)
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 / 2What does '..' represent?