Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

NOTE: CentOS Enterprise Linux is built from the Red Hat Enterprise Linux source code. Other than logo and name changes CentOS Enterprise Linux is compatible with the equivalent Red Hat version. This document applies equally to both Red Hat and CentOS Enterprise Linux.

Appendix E. System Directories

This is a list of the primary Red Hat Enterprise Linux system directories. Each directory is described briefly. For additional directory information, refer to the Red Hat Enterprise Linux System Administration Guide and the Red Hat Enterprise Linux Reference Guide.

  • /bin/ — Used to store user commands. The directory /usr/bin/ also stores user commands.

  • /sbin/ — Location of many system commands, such as shutdown. The directory /usr/sbin/ also contains many system commands.

  • /root/ — The home directory of root, the superuser.

  • /misc/ — This directory is used for automatically mounting directories on removeable devices (such as Zip drives) and remote directories (such as NFS shares) using autofs. Refer to the autofs manual page (type man autofs at a shell prompt) for more information.

  • /mnt/ — This directory typically contains the mount points for file systems mounted after the system is booted.

  • /media/ — This directory contains the mount points for removable media, such as diskettes, CD-ROMs, and USB flash drives.

  • /boot/ — Contains the kernel and other files used during system startup.

  • /lost+found/ — Used by fsck to place orphaned files (files without names).

  • /lib/ — Contains many device modules and library files used by programs in /bin/ and /sbin/. The directory /usr/lib/ contains library files for user applications.

  • /dev/ — Stores device files.

  • /etc/ — Contains configuration files and directories.

  • /var/ — For variable (or constantly changing) files, such as log files and the printer spool.

  • /usr/ — Contains files and directories directly relating to users of the system, such as programs and supporting library files.

  • /proc/ — A virtual file system (not actually stored on the disk) that contains system information used by certain programs.

  • /initrd/ — A directory that is used to mount the initrd.img image file and load needed device modules during bootup.

    Warning Warning
     

    Do not delete the /initrd/ directory. You will be unable to boot your computer if you delete the directory and then reboot your Red Hat Enterprise Linux system.

  • /tftpboot/ — Contains files and applications needed for Preboot Execution Environment (PXE), a service that allows client machines and machines without hard drives to boot an operating system from an image on a central PXE server.

  • /tmp/ — The temporary directory for users and programs. /tmp/ allows all users on a system read and write access.

  • /home/ — Default location of user home directories.

  • /opt/ — Directory where optional files and programs are stored. This directory is used mainly by third-party developers for easy installation and uninstallation of their software packages.

 
 
  Published under the terms of the GNU General Public License Design by Interspire