EMZETT.
Login

Linux file system hierarchy (FHS)

In short: Linux has only one directory tree that starts at /. The Filesystem Hierarchy Standard (FHS) defines what each folder is for.

In more detail: Drives have no letters like C: but are mounted at a folder.

In detail

PathContent
/bin, /sbin, /usr/binprograms (today mostly merged under /usr)
/etcconfiguration files
/homepersonal files of users
/roothome of the administrator
/varvariable data: logs (/var/log), databases, mail
/tmptemporary files
/usrprograms, libraries, data (/usr/share)
/optadditional software
/devdevices as files (/dev/sda)
/proc, /syskernel information (virtual)
/bootkernel, initramfs, bootloader
/mnt, /mediamounted drives
/lib, /lib64libraries
  • Everything is a file: devices, processes and sockets appear as files.
  • Permissions: every file has an owner, group and permissions (rwx).
  • Hidden files: names with a dot (.config).

See also: Important packages in the Linux base system, Linux