Announcement

Collapse
No announcement yet.

File Organisation in Cent OS

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • File Organisation in Cent OS

    Some Basic Directories Which are generally found in the Cent OS server:

    /boot/ : This directory contains static files required to boot the system. These files content servers kernel files and boot files. Don't play with this files as it may result into an unbootable server.

    /dev/ : This directory contains the files of the devices connected to the server. These devices may include any input/output devices like Hard disk, modems, mouse and keyboard.

    /etc/ : This directory stores all the configuration files of the server. Files like exim configuration files, firewall configuration files and many more.

    /lib/ : This directory contains the library files which are needed by the executable binary files. Such executable binary files can be located at /bin/ directory of the server.

    /media/ : This directory is may not relevant to the sever but The /media/ directory contains subdirectories used as mount points for removeable media such as usb storage media, DVDs, CD-ROMs, and Zip disks.

    /mnt/ : This directory contains temporarily mounted files on the server. This generally includes NFS file system mounts.

    /opt/ : This directory contains the files of the various software packages which you have installed on your server. Files are organized on the basis of the package names by creating sub directories like /opt/package-name.

    /proc/ : This directory contains the files which directly send or receive data from the kernel of the server. This directory also contains files which are currently used by any process(process ID). These files can be found by navigating to the /proc/process-id.

    /sbin/ : The /sbin/ directory stores executables used by the root user. The executables in /sbin/ are used at boot time, for system administration and to perform system recovery operations.

    /srv/ : The /srv/ directory contains site-specific data served by your system running Red Hat Enterprise Linux. This directory gives users the location of data files for a particular service, such as FTP, WWW, or CVS. Data that only pertains to a specific user should go in the /home/ directory.

    /usr/ : This directory generally content the user specific data which can be shared on multiple machines. This directory is generally mounted as the read only directory.

    /usr/local/ : The /usr/local hierarchy is for use by the system administrator when installing software locally. It needs to be safe from being overwritten when the system software is updated. It may be used for programs and data that are shareable among a group of hosts, but not found in /usr.

    /var/ :
    As /usr/ is a read only directory, any program which maintains logs writes them to the /var/ directory. According to the standard definations /var/ stands for the variable data files which includes logs like /var/log/messages and lastlogs.

  • #2
    Re: File Organisation in Cent OS

    Perry, what about /home, /tmp & /root ?
    Rock _a.k.a._ Jack Daniel

    Follow eUKhost on Twitter || Join eUKhost Community on Facebook

    Comment


    • #3
      Re: File Organisation in Cent OS

      /home/:
      This will vary on the basis of various systems but for the standard we can call it home directory. It can also take customized names like home1, homeperry etc. Users data like applications and files are stored at this location and user configuration files are also stored in this directory. These configuration files generally starts with the . like in case of cPanel the file which stores the last login IP is .lastlogin. In typical Cpanel servers home directory is used to store users website files, mails etc.


      /tmp/:
      This directory is used to store temporary files by the programs. This is also a standard directory used by almost all the Linux distributions to store the temporary files. Besides these temporary files lock files can be also found in this temp directory. Lock files are created when any program is in the middle of execution of something so deleting the files from your temp directory is not a good idea always.

      Comment


      • #4
        Re: File Organisation in Cent OS

        Hi Perry,

        Thanks for sharing this basic but very useful information........!!!!!

        Comment

        Working...
        X