Linux File System Hierarchy
The Linux File System Hierarchy
|/usr||Installed software, shared libraries, include files, and static read-only program data. important sub-directories include:
–/usr/bin : User commands.
–/usr/sbin : System administration commands.
–/usr/local : Locally customized software.
|/etc||Configuration files specific to the system.|
|/var||Variable data specific to the system that should persist between boots. Files that dynamically change.|
|/run||runtime data for processes started since the last boot. This includes process ID files and lock files, among other things. The contents of this directory are recreated on reboot.|
|/home||Home directory where regular users store their personal data and configured files.|
|/root||Home directory for the administrative superuser, root.|
|/tmp||A world-writable space for temporary files. Files which have been accessed changed, or modified for 10 days are deleted from this directory automatically. Another temporary directory exists, /var/tmp, in which files that have accessed, changed, or modified in more than 30 days deleted automatically.|
|/boot||Files needed in order to start the boot process.|
|/dev||Contains special device files which are used by the system to access hardware.|
In RHEL 7, four older directories in / now have identical content as their counterparts located in /usr:
– /bin and /usr/bin.
– /sbin and /usr/sbin.
– /lib and /usr/lib.
– /lib64 and /usr/lib64.
In older version of RHEL, these were distinct directories containing different set of lines. In RHEL 7, the directories in / are symbolic links to the matching directories in /usr.
I have tried to highlight Linux File System Hierarchy. However, this is not end of it.