Shell Gym

Linux 101: Navigate the Filesystem

Ivan Velichko
by  Ivan Velichko · on
Linux

Your third hands-on session in a Linux terminal. Learn how the Linux directory tree is organized and practice navigating it with absolute paths, relative paths, and common shell shortcuts.

Linux 101: Navigate the Filesystem Shell Gym (cover image)
Overview

In this Shell Gym, you will learn how the Linux filesystem is organized and practice finding your way around it from the command line.

Assumed knowledge: you know what files and directories are, can run commands with arguments and options, and can read their output and error messages. You do not need to know the Linux directory layout or how filesystem paths work - both are introduced here.

What you will learn:

  • Find your current directory and move anywhere using an absolute path.
  • Recognize /, /home, /tmp, /etc, /usr, and /var, and understand what they are commonly used for.
  • Move into child directories and back up the tree using relative paths.
  • Return to your home directory, use ~ inside paths, and jump back to the previous directory.
  • Navigate to directories whose names contain spaces and other special characters.

A session takes just a few minutes and is meant to be repeated over time until navigating the filesystem becomes second nature.

Learning path
5 modules · 28 units
How a Shell Gym works

Practice in a real terminal

Use a regular shell on a real Linux VM. Each rep is marked complete automatically when you reach the goal.

One skill at a time

Each module focuses on one command or concept, with short exercises to help you get comfortable using it.

Repeat until it sticks

Revisit the gym after 1, 3, 7, 14, 30 days to build command-line habits and remember what you've learned.

Part of your Daily Practice

The gym appears in Daily Practice when it's time to repeat it. Pause when you need a break, or mark it complete when you're comfortable with the skill.

See your progress

Review past sessions to see how long you practiced and how many reps you completed.

Help when you get stuck

Use hints and feedback based on what's happening on your VM to work out the next step without being given the answer.

Learn more about Shell Gyms
Train