free
命令可以显示当前系统的内存使用状况,还可以显示内核使用的内存缓冲区的状况。free
命令的参数如下:
$ free
total used free shared buff/cache available
Mem: 1016100 472864 134896 4356 408340 371844
Swap: 0 0
$ free -m
total used free shared buff/cache available
Mem: 992 461 131 4 398 363
Swap: 0 0 0
$ free -h
total used free shared buff/cache available
Mem: 992M 461M 131M 4.3M 398M 363M
Swap: 0B 0B 0B
每一列的解释如下: