Linux6h estimated

The Shell & Filesystem Navigation

Difficulty
Importance

The problem

Interacting with a computer by typing precise commands, rather than clicking through menus, is faster, scriptable, and repeatable — the shell is the program that reads those commands and the filesystem tree is what most of them navigate and manipulate.

Why now

File systems & I/O already explained the tree structure and the OS-mediated access underneath every file operation; the shell is simply the first and most direct interface a human uses to trigger that access — this topic turns that theory into the muscle-memory commands used constantly afterward.

Mental model

The shell is a loop: read a line, interpret it as a command plus arguments, run it, print the result, repeat. Filesystem navigation is just walking the same tree file-systems-and-io already described — cd descends into a child directory, .. ascends to the parent, and pwd asks 'where in the tree am I right now.'

Requires

Unlocks

Used in

Projects

  • Navigate a nested directory structure using only cd, ls, and pwd, then create, move, and delete files using mkdir, mv, and rm
  • Write down the absolute and relative path to a deeply nested file from three different starting directories

Examples

  • cd ../../projects moves up two directories then down into projects, entirely relative to the current location
  • ls -la lists all files including hidden ones, with detailed permissions and metadata

Resources

Mastery checklist