AOSC OS Filesystem Hierarchy Specifications

The filesystem hierarchy used by AOSC OS is based on FHS (Filesystem Hierarchy Standard), version 2.3 - with extra changes made or suggested by Systemd and AOSC OS developers. Only those differentiated from the standard FHS 2.3 specifications will be discussed below.

For the original FHS 2.3 specifications in HTML, please refer to here.

Symbolic Links

In AOSC-style filesystem hierarchy, the /usr/lib and /usr/bin directories serves all libraries and executable binaries available:

  • For all ports: /lib → /usr/lib.
    • For 64-bit ports: /lib64 → /usr/lib, /usr/lib64 → /usr/lib.
  • For all ports: /bin → /usr/bin, /sbin → /usr/bin, /usr/sbin → /usr/bin.

Additionally, two directories in /var are also served as symbolic links:

  • /var/run → /run, and /var/lock → /run/lock.