•Arnošt Havelka
Practical: Relative Paths
Navigate like a pro using .. and .
Start Interactive LessonStop 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
Terminal
C:\Users\Student>cd
Step 2: Use Relative Paths
Instead of move file.img C:\Project\assets, go up two levels (..\..) to Project, then down into assets.
Terminal
C:\Users\Student\Projects\site>move logo.png ..\..\assets
Step 3: Verify
Check the assets folder without leaving your current spot.
Terminal
C:\Users\Student\Projects\site>dir ..\..\assets
Knowledge Check
1 / 2What does '..' represent?
References
These documentation links provide authoritative details for the commands used in this article.
Up Next
Bash Basics
Start your Bash journey with pwd and ls.