linux memory check commands

来源:互联网 发布:群排名优化教程 编辑:程序博客网 时间:2024/05/30 23:03

For checking the memory as in RAM

 

free

/proc/meminfo

 

 

Disk Space

 

du shows what is visible

df shows the filesystem

 

 

$ du -S /export/opt | sort –n | less

 

 

[root@xxx~]# df -h /export/opt

 

df -h /export/opt

 

df -k .

 

df -k

/dev/mapper/datavg-cdo

                      69565928  32097284  33934820  49% /export/opt

 

 

du -h --max-depth=1 à for folder level memory usage

 

 

du -ch * à gives you the individual files and also a total at the end

du -sh * à gives you the individual files

 

du -h *

du -h 155646_CDOTM_REFLKUP_START_out

 

du –sh

 

du | sort –n

 

du -h | less

 

http://www.linfo.org/du.html

 

http://www.t1shopper.com/tools/calculate/