What is the Linux filesystem hierarchy standard
· Category: Linux
Short answer
The Filesystem Hierarchy Standard (FHS) defines the structure of Linux directories. /bin holds essential binaries, /etc stores configuration, /var contains variable data, /usr holds user programs, and /home stores user files. For managing access to these directories, see how to manage file permissions. For searching files within the hierarchy, see how to use find command.
Steps
- List root directories:
ls / - Check essential binaries:
ls /bin - View system configs:
ls /etc - Inspect variable logs:
ls /var/log - Review user-installed software:
ls /usr/bin
Tips
/tmpis cleared on reboot; use/var/tmpfor persistent temporary files/optis for optional add-on software- Search for text inside config files using how to use grep