说明
free 命令显示系统中剩余和已用的内存信息
入门实例
$free –m
<a href="http://yjplxq.blog.51cto.com/attachment/201210/26/4081353_1351233936Jccf.png"></a>
解释: -b,-k,-m,-g 显示的输出分别是 bytes, KB, MB, or GB
$free –l
<a href="http://yjplxq.blog.51cto.com/attachment/201210/26/4081353_1351233940vPsR.png"></a>
帮助文件
free [-b|-k|-m|-g] [-l] [-o] [-t] [-s delay] [-c count] [-V]
-b,-k,-m,-g
show output in bytes, KB, MB, or GB
-l
列出low和high内存状态的详细信息
-o
用过去的格式输出 (no -/+buffers/cache line)
-t
陈列出RAM+swap全部信息
-s
延迟n秒后输出一次
-c
输出几次,与-s一起使用
-V
打印版本信息
实例
$free –c 3 –s1
如图所示:
<a href="http://yjplxq.blog.51cto.com/attachment/201210/26/4081353_1351233940oGeB.png"></a>
解释:内存信息打印三次,间隔1秒
本文转自 wws5201985 51CTO博客,原文链接:http://blog.51cto.com/yjplxq/1038004,如需转载请自行联系原作者