Definition of Linux Directory

Source: Internet
Author: User
Tags web hosting

/root directory, store system commands and user data, etc. (if the following mount points do not have separate partitions, they will be in the partition of the root directory)
/boot boot loader static link file for Linux boot-related programs
/home User directory, storing data for ordinary users
/tmp temp file
/usr is where the Red Hat Linux system holds the software and, if possible, the maximum space should be allocated to it
/usr/local the self-installed program is installed here
/var constantly changing data, some server services are placed below.
/OPT Additional Application Packages

/bin Basic Command Execution file
/dev Device files
/etc host-specific system configuration
/lib Basic shared libraries and kernel modules
/media mount point for moving media
/MNT for temporary mounting of file systems or other hardware devices (such as optical drives, floppy drives)
A virtual directory of/proc System Information (2.4 and 2.6 cores), which is generated in memory by the system itself.
/root Root User's Directory
/sbin Basic System Command execution file
/sys virtual directory for System Information (2.6 cores)
/SRV System-supplied data for service
/usr/x1186 x-windows directory, storing some x-windows configuration files
/usr/include System header file, storing some C-language header files
/USR/SRC Linux kernel source code, Linux system installed kernel source code are stored in this
/usr/bin some additions to the/bin catalogue
/usr/sbin some additions to the/sbin catalogue
/lost+found This directory is empty in most cases. But if you are working suddenly with a power outage, or you are not shutting down normally, some files will not be available when you restart the machine, and for these files, the system places them in this directory, as if providing a temporary shelter for homeless people.
/boot: You must always physically include/etc,/bin,/sbin,/lib, and/dev, or you will not be able to start the system. A typical root partition requires 150–250MB size space.
/home: Each user will place his private data in a subdirectory of this directory. The size depends on how many users will use the system, and what files are placed in their directory. Depending on the purpose of the plan, 100MB space should be prepared for each user, but should be adjusted to your needs. If you plan to save a lot of multimedia files (Pictures, MP3, movies) in your home directory, you should prepare more space.
/tmp: The temporary data created by the program is mostly stored in this directory. Usually 40–100 MB should be sufficient. Some applications-including archive handlers, D/dvd authoring tools, and multimedia software-may temporarily save image files using/tmp. If you want to use these programs, you should adjust the size of the/tmp directory accordingly. This is necessary for multi-user systems or Web servers. This allows the other parts of the file system to be secure even if the program is running with a large number of temporary files, or if the user is doing something wrong with the system. Because this part of the filesystem still has read and write operations, it usually has problems faster than the rest of the system.
/usr: contains all user programs (/usr/bin), library files (/usr/lib), Documents (/usr/share/doc), and so on. This is the most space-consuming part of the file system. You need to provide at least 500MB of disk space. The total capacity will grow depending on the number and type of packages you want to install. A loose workstation or server installation should require 4–6GB.
/var: all mutable data, such as newsgroup articles, e-mails, websites, databases, cache of package systems, etc., will be put into this directory. The size of this directory depends on the purpose of your computer, but for most people, it will be used primarily as a management tool for package systems. If you make a server, space should be as large as possible. My server's actual division and actual use of the size, has not actually put into use. So the/var directory doesn't use that much. The general Web hosting Web page directory is/var/www,postfix mail storage directory is:/var/mail,var/log, is the system logging partition,/var/spool: Store some mail, news, print queue and so on.
/OPT: Storage of optional installed software.
There are several mount points described above, in general we need at least two partitions (of course, as long as a partition can), need a swap partition, and a "/" partition, but some of the common, important mount points to other partitions, so easy to manage. General one/partition, one/usr partition, one/home partition, one/var/log partition. Of course, there are no rules, it is entirely in accordance with the needs of the set. We can use Disk Druid, which is provided by Red Hat Linux, to complete the partitioning and mount point settings.


Home directories:/root,/home/username
User executables:/bin,/user/bin,/user/local/bin
System Exectables:/sbin,/usr/sbin,/usr/local/sbin
Other mountpoints:/media/mnt
Configuration/etc
Temporary files:/temp
Kernels and bootloader:/boot
Server data:/var/srv
System Inforatmion/proc/sys
Shared libraries:/lib/usr/lib/usr/local/lib

Definition of Linux Directory

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.