df -k:查看磁盘分区
xxxxxxxx:~ # df -k
Filesystem (文件分区) 1K-blocks Used Available Use% Mounted on
/dev/sda2 20641788 17382108 2211040 89% /
udev 4091824 104 4091720 1% /dev
/dev/sda5 41247408 28086452 11065680 72% /home
shm 8388608 1343932 7044676 17% /dev/shm
du -sh * 查看当前路径下所有文件夹、文件的大小:
xxxxxxxxx:~ # du -sh *
4.0K 11.unl
4.0K 3.txt
32K Desktop
8.0K a
0 aa
4.0K b
44M bin
4.0K breeze
4.0K dl01.cap
632K oradiag_root
140K s.txt
4.0K sltest
4.0K term.cap
552K tmp
28K u908.cap
40K u908new.cap
20K u908test.cap
16K wing
4.0K xgichip.log
4.0K xx.cap
4.0K yk.txt
4.0K yulan.cap
56K yulanapp.cap