Linux Directory Structure

From bib. source

With so many Linux distributions available, administrators rely on the Filesystem Hierarchy Standard to understand the default location of particular resources.

That is, Linux implements a standard known as the Filesystem Hierarchy Standard (FHS), which specifies the expected location of certain types of files or data (Garn 2022, 17). Among other directories in it, “[t]here are three common directories that administrators work with on a regular basis” (Garn 2022, 17-18):

  • /home/${USER}, i.e. $HOME, such that each standard user account has “a specific and private directory” under /home that contains “personal files, profile settings, and other data.” This is known as a home directory.
  • /etc, wherein most system configuration files and directories are stored.
  • /var/log, wherein the log files for system processes and application processes are stored.

While these are the main, important ones, there are more that make up the FHS.

standard_account standard_accounts standard_user_account standard_user_accounts Filesystem_Hierarchy_Standard File-system_Hierarchy_Standard directory file datum environment logging process_logging process processing kernel file-system operating_system systems home_directory Linux


bibliography

  • Garn, Damon. The Official CompTIA Linux+ Student Guide (Exam XK0-005). 1.0. Downers Grove, IL: CompTIA, 2022.