The Linux Filesystem Explained for Beginners (What Lives Where)
Coming from Windows, the Linux filesystem looks alien at first: no drive letters, no C:\ , and a bunch of directories with cryptic three-letter names. But there's a simple logic to it — everything hangs off one root directory called / , and each top-level folder has a specific job. Once you learn what lives where, navigating Linux stops feeling random. One tree, one root Windows gives every drive…
Navigating the Linux filesystem can feel foreign to those coming from Windows, with the lack of drive letters and cryptic directory names. However, there's a clear logic to it all. Everything is organized under a single root directory called /. Each top-level folder has a specific purpose, and once you understand where things live, navigating Linux becomes much easier.
The key directories include /home, where each user's personal files reside (often referred to as ~), /etc, which contains system-wide configuration files, /var, where data that changes frequently like logs, databases, and website content is stored, /root for the root user's files, /usr for installed programs and libraries, /bin and /sbin for essential commands, /tmp for temporary files that are wiped on reboot, /boot for the kernel and bootloader files, /dev for device files, /proc and /sys as virtual windows into the running kernel, and /mnt and /media for temporary and removable storage.
Permissions in Linux are determined by an owner, a group, and specific read, write, and execute permissions. The "ls -l" command displays these permissions, with the first ten characters indicating the type and permissions. For example, "-rw-r--r--" means the file can be read and written by the owner, and read-only by others. Paths can be either absolute or relative.
An absolute path starts from the root directory (/), while a relative path starts from the current location. Common shortcuts include ".." for moving up one directory level and "~" for accessing your home directory. Spend some time exploring /etc, /var/log, and your home directory to familiarize yourself with the layout. Understanding these basics will make using Linux much more intuitive.
Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.