一、参数:
1、显示单位
-b, --bytes
Display the amount of memory in bytes.
-k, --kilo
Display the amount of memory in kilobytes. This is the default.
-m, --mega
Display the amount of memory in megabytes.
-g, --giga
Display the amount of memory in gigabytes.
--tera Display the amount of memory in terabytes.
--peta Display the amount of memory in petabytes.
2、-h:易读
3、-c:显示几次,与-s配合
4、-s:间隔秒
5、-t总量
二、演示:
free -m
free -h
free -t
free -h -s 3 -c 2
备注
buffers:写硬盘时在内存中的缓存空间
cached:读硬盘时在内存中的缓存空间