Skip to main content

Linux Folders & Logs

/var/log # System log files

Folder Structure

/
├── bin
├── boot
├── dev
├── etc
├── home
├── lib
├── media
├── mnt
├── opt
├── proc
├── root
├── run
├── sbin
├── srv
├── sys
├── tmp
├── usr
└── var
DirectoryPurpose
/Root of the entire filesystem
/binEssential user commands (e.g., ls, cp, cat)
/sbinSystem administration commands
/bootBootloader files and Linux kernel
/devDevice files (disks, terminals, USB devices)
/etcSystem-wide configuration files
/homeUser home directories (/home/alice)
/rootHome directory of the root user
/lib, /lib64Shared libraries needed by programs
/mediaMount points for removable media (USB drives, CDs)
/mntTemporary mount points
/optOptional third-party software
/procVirtual filesystem containing process and kernel information
/runRuntime data for processes
/srvData served by system services (web, FTP, etc.)
/sysKernel and hardware information
/tmpTemporary files
/usrUser programs, libraries, documentation
/varVariable data such as logs, caches, mail, databases

/etc/group stores all groups and ids of linux and which users are part them
/etc/sudoers stores groups that have sudo privilages like /etc/sudoers.d/

/etc/passwd # User account information
/var/log # System log files
/usr/bin # Most executable programs