hdd@hdd-pc:~$ free -m
             total       used       free     shared    buffers     cached
Mem:          7856       7565        290        223        214       2964
-/+ buffers/cache:       4386       3469
Swap:         8061        483       7578

free -m 参数是以MB为单位

我们分析这行:

-/+ buffers/cache:       4386       3469

已经使用内存:4386MB

剩余内存:3469MB