Easy Tutorial
❮ Linux Comm Csplit Linux Comm Arpwatch ❯

Linux System Directory Structure

After logging into the system, enter the following command in the current command window:

ls /

You will see something like the image below:

Tree-like directory structure:

Here is an explanation of these directories:

This is a significant change in the Linux 2.6 kernel. A new file system, sysfs, was introduced in this directory.

The sysfs file system integrates information from three file systems: the proc file system for process information, the devfs file system for devices, and the devpts file system for pseudo-terminals.

This file system is a direct reflection of the kernel's device tree.

When a kernel object is created, the corresponding file and directory are also created in the kernel object subsystem.

In a Linux system, there are several important directories that should not be accidentally deleted or altered.

/etc: As mentioned above, this contains system configuration files. Altering a file in this directory may prevent the system from starting.

/bin, /sbin, /usr/bin, /usr/sbin: These are directories where system executables are stored. For example, ls is located in /bin/ls.

It is worth noting that /bin and /usr/bin are for commands used by system users (excluding root), while /sbin and /usr/sbin are for commands used by root.

/var: This is a very important directory. Many programs running on the system generate logs, which are recorded in this directory, specifically in /var/log. Additionally, the default location for mail is also here.

❮ Linux Comm Csplit Linux Comm Arpwatch ❯