![folder structure diagram with explanation folder structure diagram with explanation](https://static.thegeekstuff.com/wp-content/uploads/2010/11/filesystem-structure.png)
If you can’t find a user binary under /bin, look under /usr/bin. /usr/bin contains binary files for user programs.Contains binaries, libraries, documentation, and source-code for second level programs.Files under this directory are deleted when system is rebooted.Directory that contains temporary files created by system and users.This includes - system log files (/var/log) packages and database files (/var/lib) emails (/var/mail) print queues (/var/spool) lock files (/var/lock) temp files needed across reboots (/var/tmp).Content of the files that are expected to grow can be found under this directory.This is a virtual filesystem with text information about system resources.For example: /proc/ directory contains information about the process with that particular pid. This is a pseudo filesystem contains information about running process.Contains information about system process.These include terminal devices, usb, or any device attached to the system.This also contains startup and shutdown shell scripts used to start/stop individual programs.Contains configuration files required by all programs.
![folder structure diagram with explanation folder structure diagram with explanation](https://miro.medium.com/max/1838/1*dRTZ-iDJa3q8onTSnb8yYA.png)
![folder structure diagram with explanation folder structure diagram with explanation](https://info474-s17.github.io/book/m3-imgs/directory_structure.png)
For example: iptables, reboot, fdisk, ifconfig, swapon.But, the linux commands located under this directory are used typically by system aministrator, for system maintenance purpose.Just like /bin, /sbin also contains binary executables.Commands used by all the users of the system are located here.Common linux commands you need to use in single-user modes are located under this directory.Please note that /root is root user’s home directory, which is not same as /.Only root user has write privilege under this directory.Every single file and directory starts from the root directory.In this article, let us review the Linux filesystem structures and understand the meaning of individual high-level directories. Why not /bin, or /sbin, or /usr/sbin? What is the different between all these directories? Have you wondered why certain programs are located under /bin, or /sbin, or /usr/bin, or /usr/sbin?įor example, less command is located under /usr/bin directory.