Learn how files and folders are organized on your computer
Before we navigate around, we need to understand how your computer organizes files.
Your computer's files are organized like a tree:
/
โโโ Users/
โ โโโ john/
โ โโโ Desktop/
โ โโโ Documents/
โ โ โโโ projects/
โ โ โโโ my-app/
โ โโโ Downloads/
โโโ Applications/
โโโ System/Start from the root (/) and give the complete location:
Start from where you currently are:
| Symbol | Meaning | Example |
|---|---|---|
~ | Your home folder | ~/Documents = /Users/john/Documents |
. | Current folder | ./file.txt = file in this folder |
.. | Parent folder | ../ = go up one level |
Tip
~ is incredibly useful. ~/Desktop always means YOUR desktop, regardless of your username.Warning
\ instead of forward slashes /. However, Git Bash accepts both!
Windows: C:\Users\john\Documents
Git Bash: /c/Users/john/DocumentsAussie Note
/)~ is shorthand for your home folder.. goes up one folder