I. Disk and directory Capacity: DF, du
The overall data of the disk is stored in the Superblock, but the capacity of each individual file is recorded in the Inode.
Df
Df-h
Displays the amount of space available on the disk where/etc resides
Here, DF automatically parses the partition where the file or directory resides, so that we can see how much space is available under a directory.
As can be seen from the above, the DF analysis data is almost for the entire file system, that is, read the content is superblock.
If we want to list the capacity of all the files in the current directory
Du
Du is going directly to the file system to find all the file data, so it is slower than DF.
Two. Connection File ln
A hard connection is connected to the software.
Chapter8:linux disk and File System Management (2) Simple operation of file system