Directory Configuration for Linux

Source: Internet
Author: User

Learning Linux I personally think it is necessary to understand the first thing in the system does not give the folder specific things to do, so in later learning and in the process of using Linux system will be more effective.


    • /bin Main content is the implementation of the system files, but the/bin in the execution of the file comparison, it can be said that the execution of/bin in any user any state can be executed, the main cat,chmod chown date MV mkdir CP Frequently used commands such as Bash
    • /boot This directory mainly places the files that will be used to boot, including the Linux kernel files and the boot menu and the required configuration files, etc.
    • / Dev any device or interface device in Linux is in the form of a file below the directory
    • /etc system main configuration files are placed almost in this folder, for example, to modify the host table, it is necessary to find the Hosts file in the folder to modify
    • /home This is the default User master folder of the system, just like the user directory in the Windows system
    • The/lib system has a very good library of functions, and/lib places the library of functions that will be used at boot time, and the function library that is called by the command below/bin/sbin.
    • /media a removable device is placed under this folder, including a CD-ROM and other devices are mounted in this folder
    • /opt This is the directory that is placed for third-party software
    • /root The main folder of the system administrator, separate from the general account, the general account's Living folder is placed in/home
    • /sbin placed under the/sbin for the boot process required, including the boot, repair, restore the system required by the command
    • /SRV the abbreviation for service is the data directory that is required for these services after some network services are started
    • /tmp is actually a cache directory, used to hold temporary files, this file can be accessed by anyone



The following is mainly about/usr this folder, which is the default installation location of third-party software, it is recommended that all software is installed in the subdirectory of this folder, do not create a new software directory


    • /usr/bin/ Most users can use the command in this folder, and it is different from the/bin is related to the boot process
    • /usr/include The header files in the program language such as C + + + are placed in this folder
    • /usr/lib contains libraries of application software and executable files or scripts that are not commonly used by the general user
    • /usr/local To install the software (third-party software) you download
    • /usr/sbin system commands that are required for non-system uptime, which can be custom commands
    • /usr/share where to place shared files
    • /USR/SRC Placement of source code

Just a little bit./var this folder, the main content is some software generated files, such as cache, log files, data files and so on

Directory Configuration for Linux

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.