Linux centos checks the partition and usage of the directory

As we all know, you can use lsblk to view the linux partition

lsblk

Explanation: The full name of lsblk is "list block"

NAME: block device name.

MAJ:MIN: Major and minor device numbers.

RM: Whether the device is removable. Note that the RM value of device sr0 is equal to 1 in this example, which means they are removable devices.

SIZE: capacity size information.

RO: This item indicates whether the device is read-only. The RO value is 1, and the table is read-only.

TYPE: Whether it is a disk or a partition on a disk. sda is disk and sr0 is read only storage (rom)

MOUNTPOINT: The mount point where the device is mounted

But in this way, I can’t view the usage of the directory I want/unclear percentage. At this time, I need to use the df command

df -h bin

Guess you like

Origin blog.csdn.net/weixin_42517271/article/details/128955954