Manpage logo

hier - filesystem hierarchy


alpine-hier(7) Miscellaneous Information Manual alpine-hier(7)

NAME

alpine-hier — filesystem hierarchy

DESCRIPTION

Overview of the filesystem hierarchy on Alpine Linux.

/

Root directory of the file system.

/bin/

Essential system utilities. The distinction between this directory and /usr/bin/ is somewhat loose, and new packages should prefer the latter. In future, this shall be a symlink to /usr/bin/.

/boot/

Static files used for the boot process. On BIOS systems, this is often the boot partition. On UEFI systems, this is sometimes the ESP, although this is strongly discouraged when using SecureBoot.

/boot/efi/

On UEFI systems, if this path exists it is typically the ESP partition. On other systems, this directory does not usually exist.

/dev/

Device files. Typically mounted as devtmpfs.

/dev/shm/

POSIX shared memory segments, as those created via shm_open(3).

/efi/

On UEFI systems, alternative path for the ESP. Does not exist on non-UEFI systems.

/etc/

Configuration files which are host-specific. Some packages with multiple files use their own directory inside /etc/. May include files installed by packages themselves. Files inside this directory are typically not overwritten during package updates. See apk-protected_paths(5).

/etc/apk/

Configuration files for the Alpine Package Keeper. See apk(8).

/etc/ssl/certs/

CA certificates for anchoring trust.

/etc/ssl/certs/ca-certificates.crt

Bundle with all CA certificates.

/etc/localtime

Defines the local timezone by linking to or copying the appropriate timezone data from /usr/share/zoneinfo/.

/etc/modules-load.d/

Configuration files for modules which should be loaded automatically. See modules(7).

/etc/os-release

Identification information for the operating system and its current version.

/etc/sysctl.d/

Configuration for kernel parameters. See sysctl(8).

/home/

Home directories for regular users (each one as an individual subdirectory).

/lib/

Shared libraries for essential system utilities. In future, this shall be a deprecated in favour of /usr/lib/.

/lib/apk/

Files describing system state and configuration for apk(8). The contents inside this directory are not intended to be tampered directly, and no guarantees are made about its inner structure.

/lib/firmware/

Firmware loaded by the kernel.

/lib/modules/

Kernel modules.

/lib/modules-load.d/

Configuration files for modules which should be loaded automatically. This directory is intended to be used by packages, and will be overwritten during updates. See modules(7).

/media/

Mount points for removable media.

/mnt/

Mount point for a single, temporally mounted filesystem.

/opt/

Utilities installed by the system administrator. Packages shall not install files into this directory. Usually, software which cannot be adapted to follow alpine-hier(7) shall be installed into a single directory here.

/proc/

Exposes information about running processes. Typically mounted as the proc pseudo-filesystem. See proc(5).

/root/

The home directory for the root user.

/run/

Runtime files for the current boot. Services should place sockets, pid files and other runtime-only files here. Files are typically not preserved between reboots.

/sbin/

Essential system utilities.

/srv/

Files served by local system services, managed by the system administrator. The exact structure of this directory is defined by the system administrator.

/sys/

Exposes information from the kernel. Typically mounted as the sysfs pseudo-filesystem.

/tmp/

Temporary files which are not usually preserved between reboots. Usually mounted as tmpfs.

/usr/

The majority of user utilities and their support files. This directory should generally be treated as read-only (except for package installation, deletion or upgrades) and may be mounted across multiple hosts.

/usr/bin/

Common utilities, games and applications.

/usr/include/

Standard C or C++ headers.

/usr/lib/

Common shared object libraries, and other private support files. Larger packages may include a subdirectory here.

/usr/lib/os-release

Fallback identification information for the operating system and its current version. This file is present only for compatibility with the systemd ecosystem of tools.

/usr/libexec/

Executables meant for internal use and not intended to be executed directly from a user’s shell.

/usr/local/

Reserved for programs installed by the system administrator without using apk(8). The directory structure of this directory is identical to that of /usr/, except that it does not contain a nested local subdirectory.

/usr/local/bin/

Utilities, games and applications installed manually.

/usr/sbin/

System utilities.

/usr/share/

Architecture-independent application data. Files which are architecture-dependant should be placed in /usr/lib instead.

/usr/share/doc/

Documentation provided by installed packages, excluding manual pages.

/usr/share/licenses/

Licenses for installed packages.

/usr/share/man/

Manual pages. See man(1).

/usr/src

Source files.

/var/

Variable system data, including application state, spool files and logs. Usually persists across reboots.

/var/cache/

Ephemeral cache data for local utilities and services.

/var/log/

System log files.

/var/run/

Symlink to /run/. Exists only for backwards compatibility.

SEE ALSO

apk(8), apk-protected_paths(5), find(1), man(1), modules(7), proc(5), sysctl(8), whereis(1), which(1)

gnu-hier(7) provided by the man-pages project contains similar general information, but applies more generally to GNU/Linux systems, contains information which does not apply to Alpine Linux and lacks some distributions-specific conventions.

HISTORY

The following are related standards and conventions. Alpine Linux does not strictly adhere to any of them, but attempts to align as close as possible where applicable.

Filesystem Hierarchy Standard https://refspecs.linuxfoundation.org/FHS_3.0/fhs/index.html

hier â Linux man pages https://man7.org/linux/man-pages/man7/hier.7.html

Linux File System Hierarchy https://uapi-group.org/specifications/specs/linux_file_system_hierarchy/

file-hierarchy â systemd https://www.freedesktop.org/software/systemd/man/latest/file-hierarchy.html Alpine Linux 2025-08-23 alpine-hier(7)


Updated 2026-06-01 - jenkler.se | uex.se