The role of Linux directories

Source: Internet
Author: User


/etc
This directory is used to store the configuration files and subdirectories required for system administration.

/bin
Bin is the abbreviation for binary. This directory inherits the structure of the UNIX system and stores the commands most often used by the user. such as CP, LS, cat, and so on.

/sbin
S is the meaning of super user, which means that the management program used by the system administrator is stored here.

/root
The home directory of the system administrator (also called the Superuser). As the owner of the system, there must be some privilege! such as owning a directory alone.

/home
The user's home directory, such as a user named Wang, his home directory is/home/wang can also be expressed in ~wang.

/boot
Here are some of the core files used when starting Linux.

/dev
Dev is the abbreviation for device (devices). This directory is the external device for all Linux, which functions like the. SYS and the. vxd under Win in DOS. In Linux, devices and files are accessed in the same way. For example:/dev/hda represents the first physical IDE hard disk.

/lib
This directory contains the system's most basic dynamic link sharing library, which acts like a. dll file in Windows. These shared libraries are required for almost all applications.

/proc
This directory is a virtual directory, it is the mapping of system memory, we can access this directory directly to obtain system information. In other words, the contents of this directory are not on the hard disk but in memory.

--------------------------------------------------------------------------------------------------------------- -----------------------

/lost+found
This directory is usually empty, and when the system shuts down, it becomes a refuge for homeless files. Yes, a bit like the. chk file under DOS.

/mnt
This directory is empty and the system provides this directory to let users temporarily mount other file systems.

/opt
The directory where the host installs additional software. The default is empty. General installation software, you can specify the installation to this directory, easy to find and manage

--------------------------------------------------------------------------------------------------------------- ------------------------

/tmp
This directory, needless to say, must be the place to store some temporary files.

/var
The directory is stocked with things that are constantly expanding, in order to maintain the relative stability of/usr, those directories that are often modified can be placed in this directory, in fact many system administrators do this. Incidentally, the system's log files are in the/var/log directory.

/usr
This is the largest directory, and almost all of the applications and files we use are stored in this directory. It contains the following subdirectories;

/usr/x11r6
A directory for storing X-window;

/usr/bin
Store many applications;

/usr/sbin
Some management programs for super users are put here;

/usr/doc
This is the base of the Linux documentation;

/usr/include
Linux under the development and compilation of applications required by the header file, find here;

/usr/lib
Store some common dynamic link shared libraries and static archives;

/usr/local
This is provided to the general user of the/usr directory, where the installation of software is most suitable;

/usr/man
Man is a synonym for help in Linux, and here is the directory where the help documents are stored;

/usr/src
Linux Open source code on the existence of this directory, enthusiasts do not let go Oh!

The role of Linux directories

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.