Folders and the tree of your machine
Artifact: Describing your entire machine as one tree of folders, rooted at / or C:\
1. The promise
You'll be able to describe your entire machine as one tree of folders rooted at / (macOS) or C:\ (Windows). You'll be able to find your home folder, name the standard folders every machine has, and reveal the real path of any folder in your file manager.
2. The mental model
Folders are folders that contain folders. The whole thing is one upside-down tree. There's one root at the top, and every file on your machine lives somewhere underneath.
The vocabulary, said properly:
- A folder (also called a directory) is a file whose contents are a list of other files.
- The root is the very top of the tree.
/on macOS and Linux,C:\on Windows. There's nowhere to go above it. - Your home folder is the folder belonging to your user account.
/Users/yourname/on macOS,C:\Users\yourname\on Windows. Often written as~(tilde). - A subfolder is a folder inside another folder.
(DIAGRAM: the file-system tree — Mermaid tree — root at the top, branching to Users, Applications, System; Users branches to yourname; yourname branches to Documents, Downloads, Desktop)
3. You do it, with me
Step 1. Open your home folder.
- macOS: open Finder. In the sidebar, click your name (with a house icon).
- Windows: open File Explorer. In the sidebar, click your name under "This PC" or "Home".
(SCREENSHOT: macOS Finder showing user's home folder — full window — sidebar visible — Documents, Downloads, Desktop highlighted)
(SCREENSHOT: Windows File Explorer showing C:\Users\yourname — full window — sidebar visible)
You should see the standard subfolders: Desktop, Documents, Downloads, Pictures, Music, Movies (macOS) or Videos (Windows). These are created for you when your user account is created.
Step 2. Reveal the real path.
- macOS: from the menu bar, choose
View -> Show Path Bar. A bar appears at the bottom of every Finder window showing the full path of where you are. - Windows: the address bar at the top of File Explorer already shows the path. Click the empty space at the right end of the bar to see the full text version.
(SCREENSHOT: macOS Finder path bar visible (View -> Show Path Bar) — full window — the path bar at the bottom highlighted)
Your home folder's real path is /Users/yourname (macOS) or C:\Users\yourname (Windows).
Step 3. Go up one level.
- macOS: click
Usersin the path bar, or pressCmd+Up Arrow. - Windows: click
Usersin the address bar, or pressAlt+Up Arrow.
You're now in the Users folder. You'll see your own user folder plus a folder called Shared (macOS) or Public (Windows) and maybe other user accounts.
Step 4. Go up one more level. Press the up shortcut again.
You're now at the root. There's nowhere to go above this.
(SCREENSHOT: macOS Finder at / — full window — Applications, Library, System, Users folders visible)
(SCREENSHOT: Windows File Explorer at C:\ — full window — Program Files, Users, Windows folders visible)
The standard top-level folders to recognise (and not touch):
- macOS:
/Applications(programs you've installed),/Library(system-wide settings),/System(the OS itself — protected),/Users(every user's home folder). - Windows:
Program Files(64-bit programs),Program Files (x86)(older 32-bit programs),Users(every user's home folder),Windows(the OS itself — protected).
You don't need to know what's in each one yet. You need to recognise the names.
4. What you should be seeing
A Finder or File Explorer window. The path bar visible. You can click "up" from your home folder to /Users (macOS) or C:\Users (Windows), then up again to the root. You can name at least three of the standard top-level folders.
5. Common stumbles
- The sidebar hides the real path. Finder's sidebar shows "Documents" with no path, as if it lived at the top. It doesn't. Its real path is
/Users/yourname/Documents. Turn on the path bar (View -> Show Path Bar) and you'll see the truth at the bottom of every window. - You dragged
/Systemsomewhere and panicked. macOS protects system folders with a feature called SIP (System Integrity Protection). You can't actually delete them by accident — the drag will fail or the file will reappear. Don't go testing this on purpose. - The Desktop becomes a graveyard. Every new developer saves files to the Desktop because it's right there. A year later, there are 400 files on it and the OS slows down. Save to Documents, Downloads, or a project folder instead. The Desktop is for things you're actively working with this week.
- On Windows you can't find
C:\Users\yourname. File Explorer sometimes localises the display name. Your folder might appear as "Documents and Settings" or be translated. The address bar shows the real name. Trust the address bar.