linux文件查看情况
##查看文件系统占用情况
## h表示用g,mb等来显示,方便用户理解
df -h
filesystem size used avail use% mounted on
/dev/sda2 20g 15g 4.2g 78% /
udev 7.9g 136k 7.8g 1% /dev
/dev/sda5 56g 47g 5.9g 89% /home
/dev/sda6 30g 23g 5.2g 82% /opt
shm 8.0g 5.2g 2.9g 64% /dev/shm
## h表示用g,mb等来显示,方便用户理解
##查看一个目录下每个目录的大小
du -h --max-depth=2
16k ./aes_patch
455m ./tomcat/webapps
50m ./tomcat/common
11m ./tomcat/shared
4.0k ./tomcat/temp
17m ./tomcat/logs
982m ./tomcat/bin
93m ./tomcat/server
34m ./tomcat/work
1.9m ./tomcat/conf
2.3m ./tomcat/watchdog
17m ./tomcat/tpf
1.7g ./tomcat
240k ./jdk/include
73m ./jdk/jre
2.7m ./jdk/bin
8.6m ./jdk/lib
85m ./jdk
1.8g .