Windows divides data into multiple drives (C:, D:, etc.), Linux follows a structured, single-rooter system.

Root directory (/)

It contains all essential system directories, configuration files, and user data.

Everything in Linux is a file, whether it’s a text document, a directory, a hardware device, or a running process.

This directory stores essential system executables required for basic operations. Few commands examples are:-

ls, cp, mv, grep, cat, echo, rm

Here all administrative commands reside for system management and available only for root privileges. Few examples are:-

shutdown, reboot, fsck, fdisk, iptables, mkfs

If you ever prepare a nginx server or apache then you know this area as the configurations are done here. All system-wide configuration files and scripts live here. If you want to modifiy files here it required administrative privileges. Few examples are:-

/etc/fstab – defines file system mount point

/etc/passwd – stores user account information

Put your personal files here and its for each user — each user gets their own space: /home/{username}/

This directory contains:-

Documents, Downloads, Pictures, Videos, .bashrc (custom shell configurations)

Your superuser (root) home directory. It provides a secure workspace, separate from standard user directories.

NEVER, I said never use root for daily tasks! I already feel bad after not listening to this warning in my college days in year 2013.

Confused! No worries. This directory mainly stores your frequently changing files, such as logs, database and cache.

Stores temporary files created by your running applications and the system. And often cleared out automatically on reboot. So, don’t put any important file here.

It is quite a big place for system-wide, read-only files. All your software installed via system repository package goes here.

/usr/bin/ – Common user apps (e.g., vim, nano, wget, apt)

/usr/sbin/ – System admin binaries (e.g, ipconfig)

/usr/local/ – Manually installed software by user

This directory holds shared libraries (.so files) required by binaries in /bin and /sbin

You want to install commercial apps like Google Chrome, Oracle Java, etc., everything goes here (for 3rd party software)

Inject your pen drive, CDs or SD cards and you will see mounted devices here.

Special files representing hardware devices

/proc/ few examples are:-

/proc/cpuinfo – system CPU details

/proc/meminfo – system memory usage

/sys/ – exposes kernel and hardware configurations.

stores volatile runtime data that is created by the system while it is running. Content disappear after reboot.

This directory contains data served by system services. You can think of this place where server applications store the data they provide to clients.

Used by the fsck utility for recovering lost files and appears in each partition with a Linux filesystem.

Leave a Reply

Your email address will not be published. Required fields are marked *