Lesson 1.4: Practice — File System Navigation
Duration: 45 minutes
Learning Objectives
After completing this lesson, you will be able to:
- Navigate your file system using the graphical file browser
- Create, rename, move, and delete files and folders
- Understand the practical layout of a typical computer
- Prepare for command-line navigation (coming in Module 2)
Introduction
Now it's time to put your knowledge into practice. In this hands-on lesson, you'll explore your computer's file system, create your own folder structure, and get comfortable navigating around. This is essential preparation for the command line, where you'll do the same things but with typed commands instead of clicks.
Main Content
Opening Your File Browser
First, let's open the tool you'll use to explore files:
| Operating System | File Browser | How to Open |
|---|---|---|
| Windows | File Explorer | Press Win + E or click folder icon in taskbar |
| macOS | Finder | Click the Finder icon in the Dock or press Cmd + Space and type "Finder" |
| Linux | Files (Nautilus) | Click Files in your app menu or press Super key and search "Files" |
Key Locations to Know
Every operating system has standard folders. Here's where to find important things:
On macOS
/
├── Users/
│ └── [your-username]/ ← Your home folder (~)
│ ├── Desktop/ ← Files on your desktop
│ ├── Documents/ ← Your documents
│ ├── Downloads/ ← Downloaded files
│ ├── Pictures/ ← Images and photos
│ └── Music/ ← Audio files
├── Applications/ ← Installed apps
└── System/ ← macOS system files (don't touch!)
On Windows
C:\
├── Users\
│ └── [YourName]\ ← Your home folder
│ ├── Desktop\ ← Files on your desktop
│ ├── Documents\ ← Your documents
│ ├── Downloads\ ← Downloaded files
│ ├── Pictures\ ← Images and photos
│ └── Music\ ← Audio files
├── Program Files\ ← Installed 64-bit apps
├── Program Files (x86)\ ← Installed 32-bit apps
└── Windows\ ← Windows system files (don't touch!)
On Linux
/
├── home/
│ └── [username]/ ← Your home folder (~)
│ ├── Desktop/ ← Files on your desktop
│ ├── Documents/ ← Your documents
│ ├── Downloads/ ← Downloaded files
│ └── Pictures/ ← Images and photos
├── usr/ ← User programs
├── etc/ ← Configuration files
└── var/ ← Variable data (logs, etc.)
Navigation Shortcuts
Master these keyboard shortcuts to navigate faster:
Windows File Explorer
| Shortcut | Action |
|---|---|
Alt + ↑ |
Go up to parent folder |
Alt + ← |
Go back |
Alt + → |
Go forward |
Ctrl + N |
New window |
Ctrl + Shift + N |
New folder |
F2 |
Rename selected item |
Delete |
Move to Recycle Bin |
macOS Finder
| Shortcut | Action |
|---|---|
Cmd + ↑ |
Go up to parent folder |
Cmd + [ |
Go back |
Cmd + ] |
Go forward |
Cmd + N |
New window |
Cmd + Shift + N |
New folder |
Enter |
Rename selected item |
Cmd + Delete |
Move to Trash |
Linux (Most File Managers)
| Shortcut | Action |
|---|---|
Alt + ↑ |
Go up to parent folder |
Alt + ← |
Go back |
Ctrl + N |
New window |
Ctrl + Shift + N |
New folder |
F2 |
Rename selected item |
Delete |
Move to Trash |
Understanding the Address Bar
The address bar shows your current location. You can:
- Click it to see the full path
- Type a path to jump directly to a location
- Click breadcrumbs (folder names in the path) to navigate up
macOS: Macintosh HD > Users > alice > Documents > Projects
Click "Users" to jump there ↑
Windows: This PC > Local Disk (C:) > Users > Alice > Documents
Click any part to navigate ↑
Practice Exercises
Exercise 1: Explore Your Home Folder
Goal: Get familiar with your personal space on the computer.
Steps:
- Open your file browser
- Navigate to your home folder:
- macOS: Click your username in the sidebar, or press
Cmd + Shift + H - Windows: Click your username in the sidebar, or type
%USERPROFILE%in the address bar - Linux: Click "Home" in the sidebar, or press
Alt + Home
- macOS: Click your username in the sidebar, or press
- List all the folders you see
- Open each standard folder (Documents, Downloads, Pictures) and note what's inside
Write down:
- How many folders are in your home directory?
- Which folder has the most files?
Exercise 2: Create a Project Structure
Goal: Create a folder structure for your programming projects.
Steps:
- Navigate to your Documents folder
- Create a new folder called
programming - Inside
programming, create these folders:coursesprojectspractice
- Inside
courses, create:typescript-course
- Inside
typescript-course, create:notesexercisesprojects
Your structure should look like this:
Documents/
└── programming/
├── courses/
│ └── typescript-course/
│ ├── notes/
│ ├── exercises/
│ └── projects/
├── projects/
└── practice/
Verification:
- Navigate to
typescript-course - Can you see all three subfolders?
- What is the full path to the
exercisesfolder?
Check Your Path
macOS: /Users/[yourname]/Documents/programming/courses/typescript-course/exercises
Windows: C:\Users\[YourName]\Documents\programming\courses\typescript-course\exercises
Linux: /home/[yourname]/Documents/programming/courses/typescript-course/exercises
Exercise 3: Create and Organize Files
Goal: Practice creating, renaming, and moving files.
Steps:
- Navigate to
programming/courses/typescript-course/notes - Create a new text file:
- Windows: Right-click → New → Text Document
- macOS: Open TextEdit, save a new file here
- Linux: Right-click → New Document → Empty File
- Name it
module-1-notes.txt - Open the file and type: "This is where I'll take notes for Module 1"
- Save and close the file
- Create another file called
links.txt - Move
links.txtto theexercisesfolder (drag and drop, or cut/paste) - Rename
links.txttouseful-resources.txt
Verification:
- You should have
module-1-notes.txtin thenotesfolder - You should have
useful-resources.txtin theexercisesfolder
Exercise 4: Find Hidden Files
Goal: Learn that some files are hidden by default.
Hidden files start with a dot (.) and are usually configuration files. Let's reveal them:
Windows:
- In File Explorer, click "View" in the top menu
- Check "Hidden items"
macOS:
- In Finder, press
Cmd + Shift + .(period) - Press again to hide them
Linux:
- In Files, press
Ctrl + H - Press again to hide them
Look for:
- On Mac/Linux: Files starting with
.in your home folder - On Windows: Faded/transparent folder icons
These hidden files often contain settings for programs. As a developer, you'll create and edit these files (like .gitignore, .env, etc.).
Exercise 5: Path Challenge
Goal: Practice reading and writing file paths.
Using the structure you created in Exercise 2, write:
- The absolute path to the
practicefolder - The absolute path to
module-1-notes.txt - If you're in the
exercisesfolder, the relative path tomodule-1-notes.txt - If you're in the
projectsfolder (insidetypescript-course), the relative path to thepracticefolder
Answers (macOS/Linux)
/Users/[yourname]/Documents/programming/practice/Users/[yourname]/Documents/programming/courses/typescript-course/notes/module-1-notes.txt../notes/module-1-notes.txt../../../../practice(or just use absolute path!)
Answers (Windows)
C:\Users\[YourName]\Documents\programming\practiceC:\Users\[YourName]\Documents\programming\courses\typescript-course\notes\module-1-notes.txt..\notes\module-1-notes.txt..\..\..\..\practice
Bonus Challenge
Create a file called my-first-program.ts in the exercises folder. Don't worry about what's inside yet — just practice creating a file with the .ts extension. This is the file type you'll be writing in throughout this course series!
Key Takeaways
- Know how to open your file browser and navigate with keyboard shortcuts
- Your home folder contains your personal Documents, Downloads, Pictures, etc.
- Always organize your programming projects in a consistent structure
- You can reveal hidden files with a keyboard shortcut
- Practice with absolute and relative paths — you'll need this skill constantly
- Creating a folder structure now will save you headaches later
What's Next?
Congratulations! You've completed Module 1. You now understand:
- How hardware and software work together
- How files and folders are organized
- What the operating system does
- How to navigate and manage files
In Module 2: Command Line, you'll learn to do all of this using typed commands in the terminal — a skill that's essential for programming.
Resources
| Resource | Type | Difficulty |
|---|---|---|
| Windows File Explorer Tips - Microsoft | Documentation | Beginner |
| Mac Finder Basics - Apple | Documentation | Beginner |
| File Explorer Keyboard Shortcuts - Microsoft | Documentation | Beginner |