Filesystem Hierarchy Standard Flashcards
/
"root", "root directory", "primary hierarchy", shares a name with the root user only by coincidence, the all-encompassing base directory
/bin
“binary”,
contains only binaries that are essential and should be available during booting and rescuing,
not intended to be edited by users
/sbin
“system binary”,
contains only essential binaries for use by the root user or for use in single-user mode,
not intended to be edited by users
/boot
“boot”,
contains only essential static files needed by the bootloader,
does NOT contain the kernel!
/mnt
“mount”,
the conventional place to mount stuff,
# mount /dev/sdc2 /mnt/movies-partition
/usr
“Unix System Resources”,
sometimes “user” (I think this is controversial),
files placed by distribution that are used in the scope of the distribution,
also contains ‘/usr/local’ directory for files of a smaller scope,
is not intended to be configured by the user,
FHS defines this directory as ‘read-only’, but contradicts by requiring /usr/local/{,s}bin which must be read/write
/usr/bin
essential distribution-scope binaries,
http://lists.busybox.net/pipermail/busybox/2010-December/074114.html
/usr/sbin
essential distribution-scope system binaries for use by root user or in single-user mode
/usr/lib
libraries required by the distribution and distribution-scope systems
/usr/include
include files for the C compiler
/usr/share
extra credit: what important linuxy thing stores it’s important files in a subdirectory here?
read-only architecture-independent data files like:
documentation,
native language support,
word lists
files here are not intended for user customization,
extra credit: /usr/share/man is where man pages are stored!
/usr/local
files relevant only to the local system such as applications customized to the specific use-case of your system
/lib
“library”,
shared library files required during boot or rescue mode
/lib64
shared library files required during boot or rescue mode relevant to systems with 64-bit architecture
/tmp
“temporary”,
intended to store files that do not need to persist,
in most systems stuff in here will be gone next boot,
tmpfiles.d