获取当前目录下占用空间最大的5个文件或目录
cd / du -hsx * | sort -rh | head -5 1.1T /backup 876G /data 3.5G /usr 1.3G /var 1.3G /root
cd / du -hsx * | sort -rh | head -5 1.1T /backup 876G /data 3.5G /usr 1.3G /var 1.3G /root
转载于:https://www.cnblogs.com/lichunpeng/p/11237487.html