首页 > 代码库 > centos7 分区满了,分析哪个目录或文件占用空间

centos7 分区满了,分析哪个目录或文件占用空间

du -sh 

例如:

[root@zabbix ~]# du -sh /var/*
0       /var/adm
132M    /var/cache
0       /var/crash
8.0K    /var/db
0       /var/empty
0       /var/games
0       /var/gopher
0       /var/kerberos
282M    /var/lib
0       /var/local
0       /var/lock
80M     /var/log
0       /var/mail
0       /var/nis
0       /var/opt
0       /var/preserve
0       /var/run
24K     /var/spool
4.0K    /var/tmp
0       /var/www
0       /var/yp


本文出自 “小叶” 博客,请务必保留此出处http://muyuluo.blog.51cto.com/3246561/1915470

centos7 分区满了,分析哪个目录或文件占用空间