Linux命令查看当前文件夹下面占用空间最大的文件夹

du --max-depth=1 -h服务器输出:[root@web2 /]# du --max-depth=1 -h 4.0K ./rec 7.7M ./bin 18M ./boot 0 ./net 60G ./usr 16K ./lost+found 298M ./lib 8.0K ./selinux 96K ./dev 16K ./mnt 0 ./sys 29G ./weblogs 1.9G ./var 23M ./lib64 8.0K ./srv 96M ./etc 0 ./misc 818M ./tmp 20G ./home du: cannot access `./proc/18520/task/18824/fdinfo/277': No such file or directory 0 ./proc 34M ./sbin 2.4G ./root 748M ./opt 8.0K ./media 114G . [root@web2 /]#