今天突然发现服务器不能够mkdir了,说没空间,用df -h命令显示空间是很大的,网管过来用ncdu命令一下显示某些文件夹中有好多文件,说是因为linux中小文件太多引发,即实际空间还有很多,但是小文件太多,使得提示空间不够。
同时用htop查看负载,发现htop是top的增强版,安装也很简单
yum -y install epel-release
yum -y install htop
yum –y ncdu
命令使用效果: