Skip to main content

Filesystem Hierarchy Standard


# skeleton
# /etc/default/useradd
useradd -m -k /etc/skel

FHS

  • /boot

  • /dev - devfs
  • /proc - procfs
  • /sys - sysfs

  • /bin
  • /lib
  • /lib64
  • /sbin
  • /etc
    • opt/

  • /home
    • $USER
  • /opt
  • /usr
    • bin/
    • local/

  • /media
  • /mnt
  • /run - tmpfs
  • /srv
  • /var
    • cache/
    • lib/
    • lock/
    • log/
    • mail/
    • opt/
    • run/ -> /run
    • spool/
      • mail/ -> /var/mail
    • tmp/

Debian

fromto
/dev/.*/run/*
/dev/shm/run/shm
/dev/shm/*/run/*
/etc/* - writable/run/*
/lib/init/rw/run
/var/lock/run/lock
/var/run/run
/tmp/run/tmp