Linux important system folders

Source: Internet
Author: User

Important linux system folders 1. Management Folder:/boot this directory stores Linux Startup files and kernels by default, such as LILO or GRUB files. /Initrd its English meaning is boot loader initialized RAM disk, which is the memory disk initialized by boot loader. Before the Linux kernel is started, boot loader loads the initrd file in the storage medium (usually hard disk) to the memory, when the kernel is started, it will first access the initrd File System in the memory before accessing the real root file system. Www.2cto.com/bin this directory stores common Linux commands. /Sbin this directory is used to store the management programs used by the system administrator. /Var this directory stores frequently modified files, including various logs and data files. For mail server, you need to set this directory to a large space during Linux installation. /Etc This directory stores various configuration files and sub-directories used for system management, such as network configuration files, file systems, X system configuration files, device configuration information, and set user information. For web server, you need to set this directory to a large space during Linux installation. /Dev: This directory contains all external devices used in Linux. It is actually the port used to access these external devices. accessing these external devices is no different from accessing a file or directory. For example, you can enter "cd/dev/cdrom" in the system to view the files in the optical drive. /Mnt this directory has two folders, cdrom and floppy, corresponding to the optical drive and the soft drive, respectively. You can temporarily mount other file systems to this directory, for example, "mount/dev/cdrom/mnt/cdrom to the optical drive, and view cd/mnt/cdrom ", develop good habits to uninstall "umount/mnt/cdrom" in time when not in use ". 2. User folders:/root if you log on as a Super User, this is the main directory of the Super User. /Home if you create a user named "xx", there is a corresponding "/home/xx" path under the/home directory to store the user's home directory. 3. Application Folder: almost all applications and files of/usr users are stored in this directory. /Lib This directory is used to store the system dynamic link shared libraries. Almost all applications will use the shared libraries under this directory. Its function is similar to that in Windows. the dll file/opt third-party software will find this directory by default during installation, so it is empty when you do not install such software, but if you delete it once, this kind of software may be difficult to install in the future, which is equivalent to "C: \ Program Files" in windows ". /Tmp is used to store temporary files generated during execution of different programs. The directory will be automatically cleaned up by the system. Iv. Information Folder:/proc can obtain system information under this directory. The information is generated by the system in the memory, and the content of this directory is not in the hard disk but in the memory. /Misc is a utility box that allows multiple users to pile up and temporarily transfer their own files. /Lost + found this directory is empty in most cases. However, some files are temporarily stored here after a sudden power failure or abnormal shutdown. Beginners can use the ls or ll command to view each folder, and view the file color in each folder to understand the meaning of the file. Description of the file color: the blue is the folder, the green is the executable file, the light blue is the link file, the red box file is added with SUID, any permission restriction; the red is the compressed file; the device file is brown.

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.