When you first dive into Linux, the directory structure might look a little intimidating. But once you understand the core folders and what theyβre used for, it all starts to make a bit more sense. One way to make things more understandable is by making comparisons to Windows.
π Quick confession: I'm currently working through a Linux course myself! So while this guide is written to help others learn, it's also a cheat sheet Iβll be bookmarking for my own Linux adventures. If you're learning too, we're in this together!
Letβs break it all down!
π Table of Contents
-
/β Root Directory -
/homeβ User Home Directories -
/rootβ Root Userβs Home -
/etcβ Configuration Files -
/binβ Essential Binaries -
/sbinβ System Binaries -
/usrβ User Applications and Files -
/varβ Variable Files -
/tmpβ Temporary Files -
/devβ Device Files -
/procand/sysβ System Info -
/libβ Libraries -
TL;DRβ Visual Comparison Table
π / β Root Directory
What it is: The starting point of the entire Linux file system. Every other file and folder branches out from here.
Windows equivalent: C:\ (the main drive)
π /home β User Home Directories
What it is: Where personal files for each user are stored. For example, your documents, downloads, and configs.
Windows equivalent: C:\Users\YourName\
π /root β Root Userβs Home
What it is: The home directory for the root (administrator) user.
Windows equivalent: Kind of like C:\Users\Administrator\
π /etc β Configuration Files
What it is: System-wide configuration files for your Linux system and installed software.
Windows equivalent: A mix of C:\Windows\System32\ and the Windows Registry
π /bin β Essential Binaries
What it is: Basic command-line programs needed to boot and run the system.
Windows equivalent: Think of this like C:\Windows\System32\ for basic command tools.
π /sbin β System Binaries
What it is: System-level binaries (commands) for admin tasks, usually run by the root user.
Windows equivalent: Also similar to System32, but tools for system maintenance.
π /usr β User Applications and Files
What it is: Secondary hierarchy for user-installed software, libraries, and documentation.
Windows equivalent: Like C:\Program Files\ or C:\Program Files (x86)\
π /var β Variable Files
What it is: Files that change often, like logs, mail, or spool directories.
Windows equivalent: Like C:\ProgramData\ or C:\Windows\Logs\
π /tmp β Temporary Files
What it is: Stores temporary files. Gets cleared on reboot.
Windows equivalent: Like C:\Windows\Temp\
π /dev β Device Files
What it is: Represents hardware devices as files (yes, even USB drives).
Windows equivalent: Like Device Manager, but represented as files in a folder.
π /proc and /sys β System Info
What it is: Virtual files that expose system and kernel info in real-time.
Windows equivalent: Similar to tools like Task Manager or System Information
π /lib β Libraries
What it is: Shared libraries needed by binaries in /bin and /sbin.
Windows equivalent: Like .dll files in System32
π§ TL;DR: Visual Comparison Table
| Linux Directory | Purpose | Windows Equivalent |
|---|---|---|
/ |
Root of file system | C:\ |
/home |
User files | C:\Users\ |
/root |
Admin user home | C:\Users\Administrator\ |
/etc |
Config files |
System32 + Registry |
/bin |
Essential commands |
System32 tools |
/sbin |
Admin tools | Advanced system tools |
/usr |
User-installed apps | Program Files\ |
/var |
Logs, mail, etc. |
ProgramData, Logs\
|
/tmp |
Temporary files |
Temp folder |
/dev |
Hardware devices | Device Manager |
/proc / /sys
|
System info | Task Manager, System Info |
/lib |
Shared libraries |
.dll files |
Thanks for reading! If you're also learning Linux, Iβd love to hear about your journey in the comments. Letβs learn together! π»π
π¬ Letβs Connect

Top comments (0)