1
zts1993 2014-11-06 17:26:28 +08:00
free命令真的看不出实际使用的情况么
|
2
582033 2014-11-06 17:29:34 +08:00
echo Mem Used: $(free -m | grep 'Mem:' | awk '{print $3-$6-$7}')M
这样行不行.. |
3
msg7086 2014-11-06 17:30:08 +08:00 via iPhone
free or htop
|
4
takwai 2014-11-06 21:40:02 +08:00 1
|
5
maga OP @582033
total used free shared buffers cached Mem: 3829 3632 197 0 297 1675 -/+ buffers/cache: 1658 2170 Swap: 4095 0 4095 [root@AY14021800221445744eZ ~]# echo Mem Used: $(free -m | grep 'Mem:' | awk '{print $3-$6-$7}')M Mem Used: 1629M used - buffers -cahced 这个算法准确吗 |
6
msg7086 2014-11-07 00:24:14 +08:00 via iPhone
直接看第二行的1658就行了呗
|