查看磁盘分区情况
lsblk
df -h file_path
# 查看磁盘分区 lsblk [henry@192 henry-sylar]$ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 100G 0 disk ├─sda1 8:1 0 300M 0 part /boot ├─sda2 8:2 0 2G 0 part [SWAP] └─sda3 8:3 0 97.7G 0 part / sr0 11:0 1 1024M 0 rom # 查看某个目录属于哪个磁盘 df -h file_path [henry@192 var]$ df -h /usr Filesystem Size Used Avail Use% Mounted on /dev/sda3 98G 8.4G 90G 9% /