Dragora GNU/Linux-Libre

Here is the filesystem hierarchy or directory tree described for Dragora 2.

Primary hierarchy

The contents of the root filesystem / must be sufficient to boot up, restore and repair the system. This includes the utilities, the configuration files and other necessary information.

Directory Description
/bin Contains the binary system accessed by the user and administrator.
/boot Contains static files of the boot loader.
/dev Devices of the system.
/etc Contains configuration files of the programs.
/home The "home" directory for the user(s).
/lib Essential shared libraries and Kernel modules.
/media Mount point for removable devices like floppies and cdroms.
/mnt Mount point for a temporarily mounted filesystem.
/opt Directory reserved for additional software.
/sbin Binaries of the system used only by the system administrator.
/srv Data for services provided by this system.
/tmp Temporary files.

Secondary hierarchy

/usr is the second main part of the filesystem. /usr is shareable and contains read-only data.

Directory Description
/usr Secondary hierarchy.
/usr/X11R6 Compatibility with the X Window System Version 11 Release 6.
/usr/dict Word lists.
/usr/doc Miscellaneous documentation.
/usr/games Video games' executable files.
/usr/include Standard directory for header files.
/usr/info Main directory for the GNU Info system.
/usr/lib Libraries for programming and packages.
/usr/libexec Contains small helper programs called by other programs.
/usr/src Source code, generally containing the Kernel source code.

Local hierarchy (/usr/local)

The /usr/local hierarchy is for use by the system administrator when installing software locally. We must be sure which is overwritten when updating the system software. Can be used for programs and data shared among a group of hosts, but not found in /usr.

Directory Description
/usr/local/bin Local binaries.
/usr/local/etc Host system configuration for local binary files.
/usr/local/games Local games', binaries.
/usr/local/include Local include directory (see the previous table).
/usr/local/lib Local libraries.
/usr/local/man Local manual pages.
/usr/local/sbin Binaries of administrator for the local system.
/usr/local/src Local source code.

Manual pages (/usr/man)

Directory Description
man1 Pages about user programs.
man2 This section describes all system calls (requests for the kernel to perform operations).
man3 Library functions and subroutines. Describes the program library routines that are not direct calls to Kernel services. This and chapter 2 are only really of interest to programmers.
man4 Special files. Describes the special files, related driver functions, and support network available in the system work. Typically, this includes matters related to the /dev directory.
man5 File formats. This section describes several header files, program output files and system files.
man6 Chapter of documents of games, demos, and generally trivial programs.
man7 Manual pages that are difficult to classify.
man8 Manual pages that describe the programs used by the system administrator for operation and maintenance.
mann Chapter used by manual pages of Tcl/Tk. For "n" means "new".

Architecture-independent data (/usr/share)

Directory Description
games Static data for /usr/games.
locale Locale information.
terminfo Database of terminal.
zoneinfo Time zone information.

The /var hierarchy

/var contains variable data files (which may vary). This includes administrative directories, data logging, temporary files, and transitory.

Directory Description
cache Cache application data.
lib Variable status information.
lock Lock files.
log Log files.
run Data of process in execution.
spool Data spool queue.
tmp Temporary files preserved between system reboots.

Symbolic links

This part describes the symbolic links that maintain the system's compatibility with other directories:

Symbolic link Pointing to
/usr/bin -> /bin
/usr/bin -> /sbin
/usr/share/dict -> /usr/dict
/usr/share/doc -> /usr/doc
/usr/share/info -> /usr/info
/usr/share/man -> /usr/man

Dragora is compatible with the Filesystem Hierarchy Standard (FHS).