The role of the Linux root directory folder

Source: Internet
Author: User

1. How to view disk partitioning and usage

Fdisk: View hard disk partition table

DF: Viewing partition usage

Du: View file space usage

2. root directory File function introduction

/

root directory

/bin

The most basic command required to be a basic system is to put it here. such as LS, CP, mkdir and other commands; functions and/usr/bin are similar, the files in this directory are executable, commands that ordinary users can use.

/boot

The Linux kernel and the files required for the boot system program, such as the Vmlinuz initrd.img files, are located in this directory. In general, the GRUB or LILO system Boot Manager is also located in this directory, starting the Mount file storage location, such as Kernels,initrd,grub. is generally a separate partition.

/dev

Some of the necessary equipment, sound cards, disks and so on. And like/dev/null. /dev/console/dev/zero/dev/full and so on.

/etc

The system's configuration file is stored in the location. Some server configuration files are also here, such as user account and password configuration file;

/etc/opt:/opt the corresponding configuration file

/etc/x11:xwindows System Configuration File

/etc/xml:xml configuration file

......

/home

User working directory, and personal profile, such as personal environment variables, all accounts are assigned a working directory. is generally a separate partition.

/lib

Repository file storage location. Bin and sbin required library files. Windows-like DLLs.

/media

Removable media mount point, such as CD-ROMs, mobile hard disk, USB drive, the system will be mounted here by default.

/mnt

Temporarily mount the file system. This directory is generally used to store mounted storage devices, such as the CDROM directory. You can see the definition of/etc/fstab.

/opt

An optional application package.

/proc

When the operating system is running, the process (running program) information and kernel information (such as CPU, hard disk partition, memory information, etc.) are stored here. /proc directory masquerading file system proc mount directory, Proc is not a real file system, its definition can be see/etc/fstab.

/root

Root user's working directory

/sbin

Similar to Bin, is some executable files, but not all users need, generally is the system management needs to be used.

/tmp

System temporary files, general system restarts will not be saved.

/usr

Contains the system user tools and programs.

/usr/bin: Non-mandatory ordinary user can execute command

/usr/include: Standard header file

Library files for/usr/lib:/usr/bin/and/usr/sbin/

/usr/sbin: A non-mandatory executable file

/USR/SRC: Kernel source

/usr/x11r6:x Window System, Version one, Release 6.

/srv

This directory holds data that needs to be extracted after some services are started

The role of the Linux root directory folder

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.