The /usr/
Directory
The /usr/
directory is for files that can be shared across multiple machines. The /usr/
directory is often on its own partition and is mounted read-only. At a minimum, the following directories should be subdirectories of /usr/
:
/usr |- bin/ |- etc/ |- games/ |- include/ |- kerberos/ |- lib/ |- libexec/ |- local/ |- sbin/ |- share/ |- src/ |- tmp -> ../var/tmp/
Under the /usr/
directory, the bin/
subdirectory contains executables, etc/
contains system-wide configuration files, games
is for games, include/
contains C header files, kerberos/
contains binaries and other Kerberos-related files, and lib/
contains object files and libraries that are not designed to be directly utilized by users or shell scripts. The libexec/
directory contains small helper programs called by other programs, sbin/
is for system administration binaries (those that do not belong in the /sbin/
directory), share/
contains files that are not architecture-specific, src/
is for source code.