在Linux中用"du -h"命令可以查看文件夹的大小,并且文件夹中的子文件夹大小也会显示出来。
[root@x210v3 /]# ls Settings/ etc/ linuxrc@ mnt/ root/ sys/ var/ bin/ home/ lost+found/ opt/ run@ tmp/ dev/ lib/ media/ proc/ sbin/ usr/ [root@x210v3 /]# [root@x210v3 /]# du -h /etc/ 1.0K /etc/network/if-up.d 1.0K /etc/network/if-down.d 1.0K /etc/network/if-post-up.d 1.0K /etc/network/if-pre-up.d 1.0K /etc/network/if-pre-down.d 1.0K /etc/network/if-post-down.d 8.0K /etc/network 1.0K /etc/ssl/private 1.0K /etc/ssl/certs 24.0K /etc/ssl/misc 38.0K /etc/ssl 1.0K /etc/ld.so.conf.d 11.0K /etc/init.d 354.0K /etc/
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)