Chapter 4

Linux File System

Linux organizes everything as files and directories in a single tree starting from the root (/). This chapter introduces the standard layout.

Root and the hierarchy

Everything starts at root, written as /. There are no drive letters like in Windows; all disks and partitions are mounted somewhere under /.

Important directories

PathPurpose
/homeUser home directories
/etcSystem configuration files
/bin, /usr/binExecutable programs
/varVariable data (logs, caches)
/tmpTemporary files
/rootRoot user's home

Paths

Use pwd to see your current directory and ls to list its contents. These are covered in the Basic Commands chapter.