Linux disk space occupation view

  
 

1, check the occupancy of a partition, use the command df

[root@linux~]# df -h file system capacity has been used available %% mount point /dev/mapper/vg_linux- lv_root15G 3.2G 11G 23% /tmpfs 246M 0 246M 0% /dev/shm/dev/sda1 485M 94M 366M 21% /boot/dev/mapper/vg_linux-lv_opt11G 155M 9.8G 2% /opt

2 To view the space occupied by the specific directory, use the command du

du -h -s /home/*

Copyright © Windows knowledge All Rights Reserved