wiki.allensmith.net

Personal "Rough Notes & Useful Links

User Tools

Site Tools


kb:linux:directorystructure

Linux Directory Structure Summary

Table of Contents

References:
Filesystem Hierarchy Standard (FHS) → http://www.pathname.com/fhs/
tecmint.com → Linux Directory Structure and Important Files Paths Explained
edx.org → LinuxFoundationX: LFS101x.2 Introduction to Linux » Chapter 03 → Section 1: Linux Filesystem Basics
blackmoreops.com → Linux file system hierarchy

This document is some very rough Personal Notes. As such, some information in this may not be correct. Any errors or omissions introduced into this information would be my mistake, so that should not be held against any sources I have used to help put this together.
All Linux filesystem names are case-sensitive, so /boot, /Boot, and /BOOT represent three different directories (or folders).
On a UNIX system, everything is a file; if something is not a file, it is a process.

/bin/ : All the executable binary programs (files) required during booting, repairing, files required to run into single-user-mode, and other important basic commands

<br/> /boot/ : Holds important files during boot-up process, including Linux Kernel.

<br/> /dev/ : A pseudo file-system that contains device files for all the hardware devices on the machine.

<br/> /etc/ : Contains Application’s configuration files, startup, shutdown, start, stop script for every individual program.

<br/> /home/ : Home directory of the users. Every time a new user is created, a directory in the name of user is created within home directory which contains other directories like Desktop, Downloads, Documents, etc..

<br/> /lib/ : The Lib directory contains kernel modules and shared library images required to boot the system and run commands in root file system.

<br/> /media/ : Removable Media Drives and Removable Devices are often mounted as a tremporary directory undrer <tt>/media</tt><br/>e.g. a Floppy Disk labeled <tt>OLDTECH</tt> might end up being found at <tt>/media/OLDTECH</tt> ... thus a file <tt>README.txt</tt> on that disk would be at <tt>/media/OLDTECH/README.txt</tt>

<br/> /mnt/ : Temporary mount directory for mounting a file system.

<br/> /opt/ : Optional is abbreviated as opt. Contains third party application software.<br/>e.g. ... Java, etc..

<br/> /proc/ : This pseudo filesystem contains files and directories that mimic kernel structures and configuration information -- including running process with a particular Process-id (a.k.a. <tt>pid</tt>).

<br/> /root/ : This is the home directory of root user -- and should never be confused with <tt>‘/‘</tt>

<br/> /sbin/ : Contains binary executable programs, required by System Administrator, for Maintenance.<br/>e.g. ... iptables, fdisk, ifconfig, swapon, reboot, etc.

<br/> /srv/ : Service is abbreviated as <tt>‘srv‘</tt>. This directory contains server specific and service related files.

<br/> /sys/ : Modern Linux distributions include a <tt>/sys</tt> directory as a virtual filesystem -- which stores and allows modification of the devices connected to the system.

<br/> /tmp/ : System’s Temporary Directory, Accessible by users and root. Stores temporary files for user and system, till next boot.

<br/> /usr/ : Contains executable binaries, documentation, source code, libraries for second level program. ... Many distributions distinguish between core utilities needed for proper system operation and other programs. These "other" second level programs are then placed in directories under <tt>/usr</tt> (think "user").

<br/> /var/ : Stands for variable. The contents of this file is expected to grow. This directory contains log, lock, spool, mail and temp files.

kb/linux/directorystructure.txt · Last modified: 2016/01/13 20:35 (external edit)