Unit 1 · What is Linux? · Lesson 4 of 34
File System Fun
File System Fun
Just like every other OS, Linux organizes everything using a file and directory based system called a file system. Think of it like a tree:
- Branches → directories
- Leaves → files
Directories can contain both files and other directories. Everything starts at the root, written as /, which is where all directories sit on top of.
Root Directory Structure
/
├── bin
├── boot
├── dev
├── etc
├── home
├── lib
├── media
├── mnt
├── opt
├── proc
├── root
├── run
├── sbin
├── srv
├── sys
├── tmp
├── usr
└── var
Each of these directories stores a specific group of files needed for Linux to operate. You don't need to memorize all of them, but here are the ones you'll run into the most in this course:
Do this lesson for real
With a free account you get the terminal, the challenges and the checks that go with every lesson in Intro to Linux, and your progress is saved as you go. CyberAcad is a 501(c)(3) nonprofit, so there is nothing to pay.