Linux system file structure and function

Source: Internet
Author: User

Linux system Architecture

/bin binary, used for all users. Executable files, user commands, related to system startup

/sbin system binaries, only administrators use. Management commands, which are related to the system's own startup.

/boot and system boot-related programs. The location where the kernel and bootloader are stored.

/dev Device file storage location.

/etc and host-related configuration files.

/etc/opt

/etc/x11 Graphical Interface configuration file

Home directory for normal users.

/home/username

/lib Library file

Static Library:. A

Dynamic library:. dll. So (Shared object)

/lib/modules kernel module files

/media mount point directory, typically used to mount discs, U-disks

The /mnt mount point directory, which typically mounts additional temporary file systems, such as removable hard disks.

/misc Miscellaneous

/opt Optional Directory, third-party program installation directory.

/proc pseudo file system, kernel mapping file.

/SRV The data storage location generated by some services.

/sys pseudo-File directory, a property mapping file associated with a hardware device, typically used for hardware management. For example, disk dispatch tuning.

/tmp temporary file/var/tmp

/var changeable files

/var/log log files

/var/spool Application Buffering Data

/var/run process number file PID file

/var/lock lock file resource lock record

/var/cache Application Cache Data

/var/lib status information of the change

/var/lib/hwclock Hardware Clock file

/var/mail/var/spool/mail mail File

/var/account Audit Log

/USR global shared read-only file

/usr/share and platform-independent data

Path to the/usr/include header file

/USR/SRC the source program location.

/usr/bin provides the basic functions of the system itself

/usr/sbin provides the basic functions of the system itself

/usr/lib

/usr/local Third party software

/usr/local/bin

/usr/local/sbin

/usr/local/lib

/selinux SELinux related files

Naming rules for files and folders:

1. The length cannot exceed 255 characters.

2. Cannot use/as file name. /is used to make separators.

3. Strictly case-sensitive.

Relative path: Current position.

Absolute path: Starting with the root/


This article is from "Small Private blog" blog, please be sure to keep this source http://ggvylf.blog.51cto.com/784661/1595996

Linux system file structure and function

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.