🗃️ The File System
Every Linux directory explained
You wrote an application and want to host it on your server. Where should you save your log files?
The Linux File System Cheat Sheet
- / (root): The primary hierarchy for the entire file system.
- /boot: Contains files needed to boot the system.
- /dev: Contains device files that represent hardware components.
- /usr: Contains user-related programs and data.
- /bin: Contains essential user binaries (commands).
- /sbin: Contains essential system binaries (commands).
- /home: Contains home directories for users.
- /lib: Contains essential shared libraries for system binaries.
- /tmp: Contains temporary files.
- /var: Contains variable data like logs and caches.
- /etc: Contains system-wide configuration files.
- /proc: Contains virtual files that represent system and process information.
- /usr/local: Contains user-installed software.
- /home/bob and /home/alice: Home directories for users Bob and Alice.