Linux File System composition

Source: Internet
Author: User

/boot directory:

Kernel files, System bootstrap file save location, storage System current Kernel "general 128M can"

such as: Boot file grub configuration file, etc.

/etc Directory:

System commonly used configuration files, so back up the system when you must back up this directory

Such as: System administrator often need to modify the file, determine the system behavior of the configuration file

/bin,/usr/bin directory:

Store user-used commands [All users can use]

such as: LS,CP

/sbin,/usr/sbin directory:

Save the commands used by the system maintenance [normal user is unavailable, only root is available]

such as: fdisk: Partition

MKFS: Formatting

/lib Directory:

Save the library files required for the system to run, and automatically copy the libraries here when the program is installed.

such as: C language with. A suffix name of the static library file

Dynamic library files with a. so extension

/dev Directory:

Storing device files

such as:/dev/cdrom

/dev/hda

/dev/sdb

/var directory:

Save frequently-changed files, system run-time data

Such as: Log files: Logs

Mail files: Mail

Offline files, scheduled tasks, etc.

/mut directory:

Temporary file system installation point, in order to facilitate the general equipment are mounted to the Mut directory

such as: CD: Mut/cdrom

U disk: MUT/SDB2

/proc directory:

System memory/CPU mapping, storing the current memory image, virtual file system, does not exist on the hard disk

Example: View memory Size: More/proc/meminfo

View Cpu:more/proc/cpuinfo

After the directory is deleted, the reboot will be mapped again.

/tmp directory:

A temporary file that is used to save the system from running, special permissions: Sticky bit t

such as: temporary data when the program is running

/usr directory:

The system is used to save information related to the user, is the largest

Save almost all of the commands, libraries, and manuals page. Similar to the C:\windows directory under Windows, when installing the software, it is customary to install it under the/usr/local directory.

/home directory:

System, the host directory of ordinary users, CD default return to their home directory

/root directory:

In the system, the Superuser's host directory

/lost+found

The check result of the system error is stored, the directory is empty by default

"Most of the other things don't have any important features, many are empty!" 】

"/HOME,/BOOT,/USR can be considered separately when managing file systems"

Linux File System composition

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.