Linux directory tree: root directory, typical directory, etc. detailed description

Source: Internet
Author: User

Reviews: The main part of the directory tree is root (/),/usr,/var,/home, etc.

The main part of the directory tree is root(/),/usr,/var,/home and so on. The following is a typical Linux directory structure as follows:
/root directory
/bin storing the necessary commands
/boot Store the kernel and the files required for startup
/dev Store device files
/etc Store the configuration file of the system
Home directory for user files, where user data resides in their home directory
/lib storing the necessary runtime libraries
/MNT The temporary mapping file system, we often mount the floppy drive and CD-ROM in the floppy and CDROM subdirectories here.
/proc storing stored process and system Information
/root home directory for super users
/sbin Storage System Management Program
/tmp directory where temporary files are stored
/usr contains applications that do not normally need to be modified, command program files, libraries, manuals, and other documents.
/var contains frequently changing files generated by the system, such as printers, mail, news and other spool directories, log files, formatted hand albums, and data files for some applications, and so on. It is recommended to place a separate partition. [Separator]

The typical/usr directory is as follows:
/X11R6 Storage X Window System
/bin storing the added user program
/dict Store Dictionary
/doc to store additional documents
/etc Store settings file
/games storing games and teaching documents
/include the header file that holds the C development tool
/info storing GNU information files
/lib Repository File
/local storage of locally generated add-on applications
/man Storing online Help files
/sbin storage of increased management procedures
/share storing structure-independent data
/SRC the source code of the storage program
Because the files in/usr are not related to a particular computer and are not modified in the usual use, this directory can be shared over the network (file system) so that when the administrator installs the new software, all computers that share the file system can use the new software.
Linux inherits the distinct features of the UNIX operating system structure. The file structure under Linux is very organized. However, the above advantages can only be realized when you are quite familiar with Linux. Now, the worm will simply introduce the directory structure under Linux.
/vmlinuzWe already know that every Linux has a kernel (vmlinuz), and we add modules to this kernel that can do a variety of specific functions, each of which is embodied in various directories in Linux. Of course, different distribution packages have small differences in their catalogs, but the main structure is the same. We'll also combine the Linux functional modules with a variety of applications, so that your Linux system can serve you. The kernel of the system is stored in the/vmlinuz directory. Remember when we configured Lilo to mention the kernel?
/bin
Obviously, bin is the binary (binary) abbreviation. In the general system, you can find the common Linux commands in this directory. In some versions you will also find some directories in the same directory as the root directory.
/boot
In this directory is stored in the system to be used to start the program. When we use Lilo to boot Linux, we use some of the information here.
/dev
DEV is the acronym for Devices. This directory is important to all users. Because this directory contains all the external devices used in the Linux system. But this is not the driver for the external device. This is not the same as our usual Windows, DOS operating system. It is actually a port that accesses these external devices. We can easily access these external devices, and access a file without any difference in a directory. For example: We type in the system: Cd/dev/cdrom we can see the files in the CD-ROM. Similarly, we type: Cd/dev/mouse can look at the mouse related files. In this directory, there is a null device, and the thing itself has no meaning. If you write files or content to this directory, they all have no return.
/cdrom
This directory is empty when you just installed the system. You can attach the optical drive file system to this directory. Example: Mount/dev/cdrom/cdrom
/etc
Etc This directory is one of the most important directories in the Linux system. This directory contains the various configuration files and subdirectories to be used in system administration. We need to use the network configuration files, file system, x system configuration files, device configuration information, set up user information, etc. are in this directory. Later, the worm will also explain in detail the contents of this directory.
/sbin
This directory is used to store system administrator's system management program.
/home
If we set up a user, the user name is "XX", then in the/home directory there is a corresponding/home/xx path, used to store the user's main directory.
/lib
LIB is the English abbreviation of library. This directory is used to store the system dynamic connection shared library. Almost all applications use shared libraries in this directory. Therefore, do not easily do anything to this directory, once the problem occurs, your system will not work, then you don't say bug didn't remind you ah.
/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.
/mnt
This directory is also empty under normal circumstances. You can temporarily hang other file systems in this directory.
/proc
System information can be obtained in this directory. This information is in memory and generated by the system itself.
/root
If you are logged in as a superuser, this is the Superuser's home directory.
/tmp
Used to store temporary files that are generated when different programs are executed.
/usr
This is the largest directory in the Linux system that occupies hard disk space. Many of the users ' applications and files are stored in this directory.


This article is from the "Blacksmith operation and Maintenance Network" blog, please be sure to keep this source http://blacksmith.blog.51cto.com/7087635/1585834

Linux directory tree: root directory, typical directory, etc. detailed description

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.