Module 02 of 12

Navigating the Filesystem

Lessons

About This Module

On Linux, everything lives in one tree of folders that starts at /, the root directory. There are no drive letters like C: or D:. Instead, your files, system settings, installed programs and even connected devices all have a place somewhere in that tree. Knowing how it is laid out, and how to move around it quickly, is what makes the terminal feel fast rather than confusing.

This module starts with a tour of the standard Linux directories such as /etc, /home, /usr and /var, and what each one is for. It then covers absolute and relative paths with pwd and cd, so you always know where you are and how to get somewhere else. Next come the everyday file commands (touch, mkdir, cp, mv and rm), including the mistakes that quietly overwrite or delete work. The module finishes with find and wildcards, so you can track down any file on the system and act on many files at once.

Practise each command in your own terminal as you watch the lessons in order, then continue on to Permissions & Ownership.

Lessons

4 videos
01

Linux Directories Explained in 100 Seconds

Fireship gives a quick tour of the Filesystem Hierarchy Standard, the layout almost every Linux system follows, and explains what the most common top-level directories are used for.

02

pwd, cd, Absolute and Relative Paths

How to check where you are with pwd, move around with cd, and the difference between absolute paths that start from the root and relative paths that start from where you are now.

03

cp, mv, rm (and the Silent Overwrite)

Creating, copying, moving and deleting files and folders with touch, mkdir, cp, mv, rm and rmdir. It also covers a common mistake: cp and mv will overwrite an existing file without asking.

04

Linux find Command with Examples

Searching for files inside a directory tree with find: matching names with wildcards, filtering results, and running an action on every file it finds.