104.7 Find System Files and Place Files in Correct Location Flashcards
Filesystem Hierarch Standard (FHS)
defines directory structure and contents in Unix-like OS
FHS
FHS
standard maintained by Linux Foundation and as of March 2017 is on version
3.0
FHS
most distributions voluntarily choose to follow it and remain in compliance as updates are released
however some distributions deviate slightly
Directory Structure
The primary specification is that all files and directories appear under the ‘root’ directory (/),
even if stored on different physical or virtual devices (although some directories do not have to
exist at all if the dependent subsystems do not exist, such as X Windows)
Directory Structure
Directory Structure
root and root directory in FHS
/
Directory Structure
command binaries intended for all users and must be available in single user mode
/bin
Directory Structure
boot loader files (kernel, initrd, etc)
/boot
Directory Structure
Device files
/dev
Directory Structure
Host-specific config files - no binaries
/etc
Directory Structure
config files for packages stored in /opt
/etc/opt
Directory Structure
config files for software that processes SGML
/etc/sgml
Directory Structure
config files for X Windows
/etc/X11
Directory Structure
config files for software that processes XML
/etc/XML
Directory Structure
users home directory
/home
Directory Structure
libaries essential for binaries in /bin and /sbin
/lib
Directory Structure
alt format libraries - 64 bit
/lib[qual]
Directory Structure
mount point(s) for removable media - CD DVD
/media
Directory Structure
temp mounted files
/mnt
Directory Structure
options app s/w often 3rd party
/opt
Directory Structure
virtual filesystem providing process and kernel info as files and corresponds to procfs
/proc
Directory Structure
root user home directory
/root
Directory Structure
run-time var data and info about the running system since last boot
/run
Directory Structure
essential system binaries
/sbin
Directory Structure
site specific data server by the local system
/srv