Linux命令:free

显示系统内存,实体内存、虚拟内存、共享内存、核心缓冲区

参数

-b 以byte为单位显示
-k 以KB为单位显示
-m 以MB为单位显示
-o 不显示缓冲区调节列
-s <间隔秒数> 自动刷新内存使用信息
-t 显示内存总和列
[root@10.0.2.15 ~]# free -t
total used free shared buff/cache available
Mem: 1014972 643276 133328 2324 238368 182196
Swap: 839676 9736 829940
Total: 1854648 653012 963268
[root@10.0.2.15 ~]# free -t -m
total used free shared buff/cache available
Mem: 991 628 130 2 232 177
Swap: 819 9 810
Total: 1811 637 940
[root@10.0.2.15 ~]# free -m
total used free shared buff/cache available
Mem: 991 628 130 2 232 177
Swap: 819 9 810