Module 04 of 11

Files & Navigation

Lessons

About This Module

Now that you can type commands, it's time to put them to work. Almost everything you do in Linux involves files, so this module teaches you how to find your way around and how to manage what you find.

It starts with the filesystem hierarchy: what directories like /etc, /home, and /var are for. From there you'll learn to navigate with absolute and relative paths using pwd, cd, and ls, then to create, copy, move, and delete files and directories. It closes with viewing file contents using cat, less, head, and tail.

Be careful with rm, because Linux has no recycle bin. When you're comfortable moving around, continue on to Permissions & Ownership.

Lessons

4 videos
01

The Linux Filesystem Explained

A tour of the top-level directories found on most Linux systems, from /bin and /etc to /home and /var, and what each one is used for.

02

Navigating with pwd, cd & Paths

Find out where you are, move between directories, and learn the difference between absolute and relative paths.

03

Creating, Copying, Moving & Deleting Files

Use mkdir, touch, cp, mv, and rm to manage files and directories, and learn why deleting needs care.

04

Viewing Files: cat, more, less, head & tail

Read file contents without opening an editor, and learn which command fits a short note, a long file, or the end of a log.