March 04, 2018

Linux directory structure


DirectoryDescription
/The top-level directory. Start of all directories.
/binThe directory where Linux basic commands are located.
/etcThe directory where system configuration files are located.
/etc/mailMail related setting directory.
/etc/sshSSH related setting directory.
/etc/squidSquid proxy server related setting directory.
/etc/sambaSamba related setting directory.
/etc/skelThe directory where the initialization files are located for creating an account.
/etc/rc?.dThe directory where the link files of each runlevel script are located.
/etc/init.dThe directory where the actual files of each runlevel script are located.
/etc/pam.dPAM related setting directory.
/etc/httpdApache server related setting directory.
/etc/cron.*Cron related setting directory.
/etc/xinetd.dXinetd demon related setting directory.
/rootThe root account's home directory.
/bootThe directory where the kernel image and boot information files are located.
/homeThe directory where the normal users' home directories are located.
/media
/mnt
The directory where detachable devices are located. It is used as a mount point.
/tmpThe public directory available to all users.
/varDirectory where temporary data such as system log files are located.
/var/tmpThe public directory available to all users.
/var/logThe directory where log files are located.
/var/ftpThe home directory of the FTP service.
/var/namedThe directory where DNS zone files are located.
/var/spool/mailThe directory where users' mail files are located.
/var/spool/lpdThe temporary directory for printing.
/var/spool/mqueueDirectory where mailes are located temporarily.
/var/spool/cronThe directory where user's crond configuration files are located.
/var/spool/atThe directory where user's atd configuration files are located.
/devThe directory where device files are located.
/usrThe directory where most programs and libraries for general users are located.
/usr/sbin
/usr/bin
The directory where commands for general users are located..
/usr/include
/usr/lib
The directory where header files for programing are located.
/usr/srcThe directory where source code files of kernel are located.
/usr/localThe directory for installing a software.
/usr/share/manThe directory where man page files are located.
/lost+foundThe directory where files with problem are located.
/libThe directory where library files are located.
/sbinThe directory where command for system administration are located.
/procThe directory that provides tasks existing in the memory as a file format.