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