df, du, fdisk: The experience of using the three axes of Linux disk management
http://os.51cto.com/art/201012/240726_all.htm
The Df command is to view the disk space system in Linux to view the file system in the unit of disk partition. You can add parameters to view the remaining space information of the disk. Command format: df -hl Linux view disk space The display format is: file system capacity used, available, used% Mount point Filesystem Size Used Avail Use% Mounted on /dev/hda2 45G 19G 24G 44% / /dev/hda1 494M 19M 450M 4% /boot /dev/hda6 4.9G 2.2G 2.5G 47% /home /dev/hda5 9.7G 2.9G 6.4G 31% /opt none 1009M 0 1009M 0% /dev/shm /dev/hda3 9.7G 7.2G 2.1G 78% /usr/local /dev/hdb2 75G 75G 0 100% /
/dev/hdb2 75G 75G 0 100% /
Taking the above output as an example, it means:
the second hard disk (b) of the HD hard disk interface, the second partition (2), the capacity is 75G, 75G is used, Available is 0, so the utilization is 100%, and is mounted on the root partition directory (/).
The following is an explanation of the Linux command to check disk space:
df -hl Check the remaining space on the disk
df -h Check the partition size of each root path
du -sh [directory name] Return the size of the directory
du -sm [folder] Return the file
The can be viewed by entering the following command:
df --help
du --help
Linux check disk space command
Guess you like
Origin http://10.200.1.11:23101/article/api/json?id=326801769&siteId=291194637
Ranking