Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
en:project:fhs [2018/10/11 08:13] emulatorman |
en:project:fhs [2023/08/03 02:38] (current) emulatorman |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== | + | ====== |
| - | //The **Filesystem Hierarchy Standard** (FHS) defines the main directories and their contents in GNU/Linux and other Unix-like computer operating systems.// | + | The **Filesystem Hierarchy Standard** (FHS) defines the main directories and their contents in GNU/Linux and other Unix-like computer operating systems. |
| ===== Overview ===== | ===== Overview ===== | ||
| Line 16: | Line 16: | ||
| All files and directories appear under the root_directory "/", | All files and directories appear under the root_directory "/", | ||
| - | A description of the hierarchy specified in the FHS | + | A description of the hierarchy specified in the FHS: |
| - | **/bin/** | + | {| border=" |
| + | ! style=" | ||
| + | ! style=" | ||
| + | |- | ||
| + | |/bin | ||
| + | |Essential user command binaries. | ||
| + | |- | ||
| + | |/boot | ||
| + | |Static files of the boot loader | ||
| + | |- | ||
| + | |/dev | ||
| + | |Device files | ||
| + | |- | ||
| + | |/etc | ||
| + | |Host-specific system configuration | ||
| + | |- | ||
| + | |/ | ||
| + | |Host-specific system configuration for Local binaries | ||
| + | |- | ||
| + | |/etc/opt | ||
| + | |Host-specific system configuration for Add-on application software packages | ||
| + | |- | ||
| + | |/home | ||
| + | |User home directories | ||
| + | |- | ||
| + | |/lib | ||
| + | |Essential shared libraries | ||
| + | |- | ||
| + | |/libexec | ||
| + | |Essential binaries run by other programs (BSD descendant systems only) | ||
| + | |- | ||
| + | |/ | ||
| + | |Loadable kernel modules (monolitic kernel package only) | ||
| + | |- | ||
| + | |/lib32 | ||
| + | |Essential shared libraries for 32bit binaries (multilib packages only) | ||
| + | |- | ||
| + | |/media | ||
| + | |Mount point for removable media | ||
| + | |- | ||
| + | |/mnt | ||
| + | |Mount point for temporarily mounted filesystem / Mount point for mounting a filesystem temporary | ||
| + | |- | ||
| + | |/opt | ||
| + | |Add-on application software packages | ||
| + | |- | ||
| + | |/proc | ||
| + | |Kernel and process information virtual filesystem (mounted with procfs) | ||
| + | |- | ||
| + | |/root | ||
| + | |Home directory for the root user | ||
| + | |- | ||
| + | |/run | ||
| + | |Run-time variable data / Data relevant to running processes | ||
| + | |- | ||
| + | |/sbin | ||
| + | |Essential system command binaries | ||
| + | |- | ||
| + | |/srv | ||
| + | |Data for services provided by this system | ||
| + | |- | ||
| + | |/sys | ||
| + | |Kernel and system information virtual filesystem (Linux* kernel only; mounted with sysfs) | ||
| + | |- | ||
| + | |/tmp | ||
| + | |Temporary files (mounted with tmpfs) | ||
| + | |- | ||
| + | |/usr | ||
| + | |Secondary hierarchy | ||
| + | |- | ||
| + | |/usr/bin | ||
| + | |Most user command binaries | ||
| + | |- | ||
| + | |/usr/games | ||
| + | |Games and educational binaries | ||
| + | |- | ||
| + | |/ | ||
| + | |Directory for standard include files / Header files included by program languages | ||
| + | |- | ||
| + | |/usr/lib | ||
| + | |Shared libraries | ||
| + | |- | ||
| + | |/ | ||
| + | |Shared libraries for game binaries | ||
| + | |- | ||
| + | |/ | ||
| + | |Shared libraries for 32bit binaries (multilib packages only) | ||
| + | |- | ||
| + | |/ | ||
| + | |Shared libraries for 32bit game binaries (multilib packages only) | ||
| + | |- | ||
| + | |/ | ||
| + | |Binaries run by other programs | ||
| + | |- | ||
| + | |/ | ||
| + | |Local hierarchy (for personal installation only) | ||
| + | |- | ||
| + | |/ | ||
| + | |Local user binaries | ||
| + | |- | ||
| + | |/ | ||
| + | |Local games and educational binaries | ||
| + | |- | ||
| + | |/ | ||
| + | |Local directory for standard include files / Local header files included by program languages | ||
| + | |- | ||
| + | |/ | ||
| + | |Local shared libraries | ||
| + | |- | ||
| + | |/ | ||
| + | |Local shared libraries for game binaries | ||
| + | |- | ||
| + | |/ | ||
| + | |Local shared libraries for 32bit binaries (multilib packages only) | ||
| + | |- | ||
| + | |/ | ||
| + | |Local shared libraries for 32bit game binaries (multilib packages only) | ||
| + | |- | ||
| + | |/ | ||
| + | |Local binaries run by other programs | ||
| + | |- | ||
| + | |/ | ||
| + | |Local system binaries | ||
| + | |- | ||
| + | |/ | ||
| + | |Local architecture-independent data | ||
| + | |- | ||
| + | |/ | ||
| + | |Local miscellaneous documentation (documentation packages only) | ||
| + | |- | ||
| + | |/ | ||
| + | |Local static data files for game binaries | ||
| + | |- | ||
| + | |/ | ||
| + | |Local primary directory for GNU Info system (texinfo package only) | ||
| + | |- | ||
| + | |/ | ||
| + | |Local online manuals / Local manual pages | ||
| + | |- | ||
| + | |/ | ||
| + | |Local miscellaneous architecture-independent data | ||
| + | |- | ||
| + | |/ | ||
| + | |Local source code (source code packages only) | ||
| + | |- | ||
| + | |/ | ||
| + | |Non-vital system command binaries | ||
| + | |- | ||
| + | |/ | ||
| + | |Architecture-independent data | ||
| + | |- | ||
| + | |/ | ||
| + | |Miscellaneous documentation (documentation packages only) | ||
| + | |- | ||
| + | |/ | ||
| + | |Static data files for game binaries | ||
| + | |- | ||
| + | |/ | ||
| + | |Primary directory for GNU Info system (texinfo package only) | ||
| + | |- | ||
| + | |/ | ||
| + | |Online manuals / Manual pages | ||
| + | |- | ||
| + | |/ | ||
| + | |Miscellaneous architecture-independent data | ||
| + | |- | ||
| + | |/usr/src | ||
| + | |Source code (source code packages only) | ||
| + | |- | ||
| + | |/var | ||
| + | |Variable data | ||
| + | |- | ||
| + | |/ | ||
| + | |Application cache data | ||
| + | |- | ||
| + | |/ | ||
| + | |Kernel crash dumps (Linux* kernels not supported) | ||
| + | |- | ||
| + | |/ | ||
| + | |Variable game data | ||
| + | |- | ||
| + | |/var/lib | ||
| + | |Variable state information | ||
| + | |- | ||
| + | |/ | ||
| + | |Miscellaneous state data | ||
| + | |- | ||
| + | |/ | ||
| + | |Variable data for Local binaries | ||
| + | |- | ||
| + | |/ | ||
| + | |Lock files | ||
| + | |- | ||
| + | |/var/log | ||
| + | |Log files | ||
| + | |- | ||
| + | |/ | ||
| + | |User mailbox files | ||
| + | |- | ||
| + | |/var/opt | ||
| + | |Variable data for Add-on application software packages | ||
| + | |- | ||
| + | |/ | ||
| + | |Application spool data | ||
| + | |- | ||
| + | |/var/tmp | ||
| + | |Temporary files preserved between system reboots | ||
| + | |} | ||
| - | Essential command executable (**bin**aries) for all users (e.g., cat, ls, cp) | + | < |
| - | + | The term " | |
| - | (especially files required to boot or rescue the system) | + | </note> |
| - | + | ||
| - | **/ | + | |
| - | + | ||
| - | Boot loader, kernels | + | |
| - | + | ||
| - | **/dev/** | + | |
| - | + | ||
| - | **Dev**ices files (e.g., :/ | + | |
| - | + | ||
| - | **/etc/** | + | |
| - | + | ||
| - | Host-specific system-wide configuration files (from **et** **c**etera) | + | |
| - | + | ||
| - | **/ | + | |
| - | + | ||
| - | Users' **home** directories | + | |
| - | + | ||
| - | **/ | + | |
| - | + | ||
| - | Standard **include** files | + | |
| - | + | ||
| - | **/lib/** | + | |
| - | + | ||
| - | **Lib**raries essential for the binaries | + | |
| - | + | ||
| - | (library required to boot or rescue the system) | + | |
| - | + | ||
| - | **/ | + | |
| - | + | ||
| - | **Lib**raries that are not intended to be **exec**uted | + | |
| - | + | ||
| - | **/ | + | |
| - | + | ||
| - | Tertiary hierarchy for **local** data installed by the system administrator | + | |
| - | + | ||
| - | * /local/bin : locally compiled binaries, local shell script, etc. | + | |
| - | * /local/src : **S**ou**rc**e code (place where to extract and build non hyperbol' | + | |
| - | + | ||
| - | **/mnt/** | + | |
| - | + | ||
| - | Temporarily **m**ou**nt**ed filesystems | + | |
| - | + | ||
| - | **/ | + | |
| - | + | ||
| - | Mount points for removable **media** such as CD-ROMs (appeared in FHS-2.3) | + | |
| - | + | ||
| - | **/opt/** | + | |
| - | + | ||
| - | Add-on application software packages | + | |
| - | + | ||
| - | Pre-compiled, | + | |
| - | + | ||
| - | * /opt/bin/ : Same as for top-level hierarchy | + | |
| - | * / | + | |
| - | * /opt/lib/ : Same as for top-level hierarchy | + | |
| - | * /opt/sbin/ : Same as for top-level hierarchy | + | |
| - | * /opt/share/ : Same as for top-level hierarchy | + | |
| - | + | ||
| - | **/ | + | |
| - | + | ||
| - | Virtual filesystem documenting kernel and **proc**ess status, mostly text files (e.g., uptime, network) | + | |
| - | + | ||
| - | **/root/** | + | |
| - | + | ||
| - | Home directory | + | |
| - | + | ||
| - | **/ | + | |
| - | + | ||
| - | System administrative binaries (e.g., init, route, ifup) (**s**ystem **bin**aries) | + | |
| - | + | ||
| - | (files required to boot or rescue the system) | + | |
| - | + | ||
| - | **/share/** | + | |
| - | + | ||
| - | Architecture-independent (**share**d) data | + | |
| - | + | ||
| - | **/src/** | + | |
| - | + | ||
| - | **S**ou**rc**e code (to build Hyperbola packages. see also / | + | |
| - | + | ||
| - | **/srv/** | + | |
| - | + | ||
| - | Site-specific data which is **s**e**rv**ed by the system. | + | |
| - | + | ||
| - | **/sys/** | + | |
| - | + | ||
| - | **The** filesystem for exporting kernel objects. | + | |
| - | + | ||
| - | (many /proc/* files should have been here...) | + | |
| - | + | ||
| - | **/tmp/** | + | |
| - | + | ||
| - | **T**e**mp**orary files | + | |
| - | + | ||
| - | **/var/** | + | |
| - | + | ||
| - | **Var**iable data, such as logs, databases, websites, and temporary spool (e-mail..) files | + | |
| ===== Acknowledgement ===== | ===== Acknowledgement ===== | ||
| This wiki article is based on **DebianWiki**. We may have removed non-[[https:// | This wiki article is based on **DebianWiki**. We may have removed non-[[https:// | ||