Share
Linux File system

All You need to know about Linux File system

  • May 26, 2023
5/5 - (2 votes)

Linux file system is a skill that can take you far. It’s meticulously organized – like a well-structured library. Each directory has a unique, specific purpose.

Let’s demystify the key directories:

/: The root directory where it all begins. Every other directory is a subdirectory of this one.

/๐—ฏ๐—ถ๐—ป: Contains fundamental binary files, necessary for minimal system functioning.

/๐˜€๐—ฏ๐—ถ๐—ป: Similar to /bin, but contains binaries essential for system bootup and repair.

/๐—ฒ๐˜๐—ฐ: Holds system-wide configuration files. It’s the go-to place for system administrators.

/๐—ต๐—ผ๐—บ๐—ฒ: A personal space for users. Think of it as your work desk, containing your documents, downloads, and more.

/๐˜ƒ๐—ฎ๐—ฟ: Stores variable data files such as logs, emails, print queues, and most notably databases.

/๐˜‚๐˜€๐—ฟ: Holds user-related programs, libraries, and files.

/๐—น๐—ถ๐—ฏ: Contains shared library files supporting the binaries in /bin and /sbin.

/๐—ผ๐—ฝ๐˜: Optional or add-on software packages are located here.

/๐˜๐—บ๐—ฝ: A place for temporary files used by the system, cleared upon reboot.

/๐—ฏ๐—ผ๐—ผ๐˜: All the files necessary for booting the system are here.

/๐—ฑ๐—ฒ๐˜ƒ: Contains device files for all hardware devices on the system.

/๐—ฝ๐—ฟ๐—ผ๐—ฐ: An interesting directory that doesn’t contain files but system and process information.

/๐—ฟ๐—ผ๐—ผ๐˜: This is the home directory for the root user, not to be confused with the root (/) directory at the top of the filesystem.

/๐—ฟ๐˜‚๐—ป: This directory hosts temporary files (like /tmp) but these are specifically related to running processes and are created at an early stage of the boot process.

/๐˜€๐—ฟ๐˜ƒ: This directory contains data for services provided by the system.

/๐˜€๐˜†๐˜€: Similar to /proc, this is a virtual filesystem providing a unified interface through which the kernel provides information about devices, drivers, and some kernel features.

/๐—บ๐—ป๐˜: This is a generic mount point under which you mount filesystems or devices.

/๐—บ๐—ฒ๐—ฑ๐—ถ๐—ฎ: This directory is generally used by the system as a mount point for removable media like CDs, digital cameras, or other media devices.

๐—ช๐—ต๐˜† ๐—ถ๐˜€ ๐˜๐—ต๐—ถ๐˜€ ๐—ถ๐—บ๐—ฝ๐—ผ๐—ฟ๐˜๐—ฎ๐—ป๐˜, ๐˜†๐—ผ๐˜‚ ๐—บ๐—ถ๐—ด๐—ต๐˜ ๐—ฎ๐˜€๐—ธ?

Well, understanding the Linux file system is crucial for many reasons: It helps you locate files swiftly, troubleshoot issues more effectively, and makes you a proficient developer or system administrator.

In an era where Linux skills are increasingly in demand, understanding the file system structure isn’t just an add-on; it’s a necessity.