Chap5 FHS Flashcards
/bin
Examples?
Binaries and other executables programs. Text files are compiled into machine readable binary files. IE. cat, echo, mkdir, pwd
/etc
Examples?
System configuration files. How the operating system behaves. IE. group, fstab, resolv.conf
/usr
Multi-user related applications, libraries, and docs
/boot
Contains the 2 files required to boot Linux
- initramfs - The initial RAM Filesystem, which is mounted before the real root filesystem becomes available. (initrd.img-4.4.0-34-generic)
- vmlinuz (kernal) - vmlinuz-4.4.0-34-generic (ends in z then is compressed)
/dev
- Device nodes which represent devices built into or connected to the system. This includes character (byte-stream) and block I/O devices.
- upon boot a virtual filesystem is created and mounted at /dev and then populated with device nodes as udev requires.
/lib
Examples?
Libraries required by executable binaries in /bin and /sbin. IE.
Kernel Modules /lib/modules
PAM (Plugable Authentication Modules) /lib/security
/proc
Provides info about running processes. Empty on a non-running system. Also termed virtual files
/sbin
Examples?
System administration binaries IE. fdisk and init
/sys
- sysfs pseudo-filesystem giving information about the system and processes running on it.
- Can be used to alter parameters.
- similar to a device tree and is part of the Unified Device Model
Additional 2 files in the /boot directory
config The config file used when compiling the kernel, it is really here just for bookkeeping and reference when debugging.
System.map The kernel symbol table, which is very useful for debugging. It gives the hexadecimal addresses of all kernel symbols
/usr/bin
Command binaries that are deemed non-essential enough to merit a place in /bin go in /usr/bin. Programs required only by non-root users
are placed in this category
/etc/init.d
Contains start up and shut down scripts when using System V initialization
Shareable
data which can be shared between different hosts (home directories)
non-shareable
data which must be specific to a particular host (lock files)
Variable
data that may change even without a systems administrators help