Fundamentals 6 min read

Master Linux Filesystem: Essential Directories Every User Should Know

This guide explains how Linux manages storage as a single root hierarchy and details the purpose and typical contents of key directories such as /home, /bin, /dev, /etc, /usr, /var, and others, including quick commands to navigate to your home folder.

Liangxu Linux
Liangxu Linux
Liangxu Linux
Master Linux Filesystem: Essential Directories Every User Should Know

/home

Home directory, stores each user's personal files. When a new user is created, a subdirectory with the same name is added under /home (e.g., /home/zhangsan). Logging in automatically lands you in this directory.

Quick ways to return to your home directory: cd – no arguments.

cd ~
cd /home/zhangsan/

– explicit path.

/bin

Contains essential binary executables used by all users, such as ls, cat, cp, etc.

/dev

Device directory; stores device files representing hardware components, following the “everything is a file” philosophy.

/etc

Holds system-wide configuration files, including server setup directories, startup scripts, and user account information (e.g., /etc/passwd).

Directories used for FTP/NFS server configuration.

System startup and configuration scripts.

Files read during boot.

User login credentials.

/lib

Stores shared libraries required by programs and the system.

/media

Mount point for automatically detected removable media such as USB drives and optical discs.

/mnt

Provides a location for manually mounting additional file systems, like extra hard drives.

/root

Home directory of the superuser (root).

/usr

Contains user applications and files, similar to Windows “Program Files”. It includes three important sub‑directories: /usr/bin – regular user applications. /usr/sbin – system administration binaries. /usr/src – source code, typically the kernel source.

/boot

Holds files needed for booting the Linux kernel.

/lost+found

Used by the filesystem to recover files after an improper shutdown; normally empty.

/opt

Optional software packages can be installed here.

/proc

Virtual filesystem exposing kernel and process information; reading files under /proc provides system status.

/sbin

Contains binaries for system administration tasks, primarily used by the superuser.

/srv

Stores data for services provided by the system (e.g., web server files).

/tmp

Temporary files created by applications; cleared on reboot.

/var

Variable data such as logs, mail spools, and other files that change frequently.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

Directory StructureFilesystembasics
Liangxu Linux
Written by

Liangxu Linux

Liangxu, a self‑taught IT professional now working as a Linux development engineer at a Fortune 500 multinational, shares extensive Linux knowledge—fundamentals, applications, tools, plus Git, databases, Raspberry Pi, etc. (Reply “Linux” to receive essential resources.)

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.