Redhat Dir

LocationPurpose
/bootFiles to start the boot process.
/devSpecial device files that the system uses to access hardware.
/etcSystem-specific configuration files.
/homeHome directory, where regular users store their data and configuration files.
/rootHome directory for the administrative superuser, root.
/runRuntime data for processes that started since the last boot. This data includes process ID files and lock files. The contents of this directory are re-created on reboot. This directory consolidates the /var/run and /var/lock directories from earlier versions of Red Hat Enterprise Linux.
/tmpA world-writable space for temporary files. Files that are not accessed, changed, or modified for 10 days are deleted from this directory automatically. The /var/tmp directory is also a temporary directory, in which files that are not accessed, changed, or modified in more than 30 days are deleted automatically.
/usrInstalled software, shared libraries, including files, and read-only program data. Significant subdirectories in the /usr directory include the following commands: /usr/bin: User commands /usr/sbin: System administration commands /usr/local: Locally customized software
/varSystem-specific variable data should persist between boots. Files that dynamically change, such as databases, cache directories, log files, printer-spooled documents, and website content, might be found under /var.

Note

Starting from Red Hat Enterprise Linux 7, four directories located under / now share the same contents as their counterparts in /usr:

  • /bin and /usr/bin
  • /sbin and /usr/sbin
  • /lib and /usr/lib
  • /lib64 and /usr/lib64

In earlier versions of Red Hat Enterprise Linux, these directories held separate sets of files. However, in Red Hat Enterprise Linux 7 and later, the directories under / are symbolic links pointing to the corresponding directories in /usr.