Linux describes the relevant folders

Source: Internet
Author: User
Tags tmp folder

Learning Linux, first understand the Linux standard folder structure is very important, learning a good cushion after the action. Go to the list of all chatty folders.

This article mainly explains. I contact, I need to know some of the file folder, of course, this article will be constantly updated or changed.

I would also like to be fortunate enough to read this article. and is willing to correct my text in the inappropriate or ambiguous readers, give your valuable comments or suggestions.

A Linux folder is like a tree, and the top-most is its root folder.

watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvbwfob2tpbmc=/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/ Dissolve/70/gravity/center ">

/root

Some of the core files used when starting Linux.

/etc [Etcetera]

The folder where the system configuration file resides. It is not recommended to store the executable files under this folder, the important configuration files are/etc/inittab,/etc/fstab,/ETC/INIT.D,/etc/x11,/etc/sysconfig,/ETC/XINETD.D, and remember to backup before changing the configuration file.

Note:/etc/x11 stores settings related to x Windows.

/sbin [super User binary]

Most of the commands that involve system administration are stored in this folder, which is the place where the superuser root can run commands. Normal user does not have permission to run the command under this folder, and the commands included in the folder Sbin are run by root authority.

/dev [device]

The device files are stored in this folder, which is the entire Linux external device file, which functions like the. sys file under DOS and the. vxd file under win. Linux uses the device as a file. The device is abstracted, which greatly facilitates the operation and control of our equipment. So the devices and files in Linux are interviewed in the same way.

/bin [binary]

This folder holds the most important commands most often used by the system, equivalent to internal commands under DOS, except that they exist as separate files. For example: LS, CP, mkdir and other commands. The files in this folder are both operational and can be used by ordinary users. The commands that are the basis of the system are put here.

/home:

System Default User home folder, add user account, the user's home folder is stored in this folder, ~ represents the current user's home folder. ~test represents the home folder for user test. It is recommended that you separate partitions and set up large disk space. User-friendly data storage.

/usr [unixshared resource]

The most massive folders, applications and files to be used almost all in this folder, including:

    • /usr/x11r6 folder where x window is stored
    • /usr/bin a multitude of applications
    • /usr/sbin Some management programs for super users
    • /usr/doc Linux Documentation
    • /usr/include the header files required to develop and compile applications under Linux
    • /usr/lib frequently used dynamic-link libraries and package profiles
    • /usr/man Help Documentation
    • /USR/SRC source code, the Linux kernel source code is placed in the/usr/src/linux
    • /usr/local/bin commands that are added locally
    • /usr/local/lib locally added Coogan file system

/var [variable]

The contents of this folder are often changed, and/var has a folder where the/var/log folder is used to store system logs.

The/var/www folder is used to define Apacheserver Web site storage folders. /var/lib is used to store some library files.

/opt [optional]

a folder for the host to install additional software.

For example, the Windows system will install the software on a non-C drive D drive.

/tmp [TEMPORARY]

This folder is used to hold temporary files, and sometimes when the user executes the program, some temporary files are generated.

/tmp is used to store temporary files.

The/var/tmp folder and the folder are similar in purpose.

/Lost+found

When an error occurs with a system exception, some missing fragments are placed in this folder. Usually this folder will take its own initiative out of the device folder.

If the drive is loaded into the/disk. In this folder, you will voluntarily generate the folder/disk/lost+found.


"reproduced in use. Please specify the source:http://blog.csdn.net/mahoking"

"Reproduced use, please specify the source:http://blog.csdn.net/mahoking"


Copyright notice: This article blog original articles, blogs, without consent, may not be reproduced.

Linux describes the relevant folders

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.