free :显示系统内存状态信息

free :显示系统内存状态信息

Usage:
 free [options]

Options:
 -b, --bytes         show output in bytes
 -k, --kilo          show output in kilobytes
 -m, --mega          show output in megabytes
 -g, --giga          show output in gigabytes
     --tera          show output in terabytes
     --peta          show output in petabytes
 -h, --human         show human-readable output 		  #易懂的方式显示
     --si            use powers of 1000 not 1024          #使用1000为基数
 -l, --lohi          show detailed low and high memory statistics   #显示详细的低内存和高内存统计信息
 -t, --total         show total for RAM + swap
 -s N, --seconds N   repeat printing every N seconds   	 	 #每N秒打印一次
 -c N, --count N     repeat printing N times, then exit		 #重复打印N次再退出
 -w, --wide          wide output

free :默认-k

[root@host ~]# free
              total        used        free      shared  buff/cache   available
Mem:         995896      109668      724360        7840      161868      711488
Swap:       2097148           0     2097148
total :总量    =used+free
used :使用量
free :空闲的交换分区
shared:共享
buff/cache:写/读缓存        buffer:存放数据到disk(块设备)  cache:从disk读取数据
Mem:物理内存
Swap:交换分区

free -b:以字节的形式显示

[root@host ~]# free -b
              total        used        free      shared  buff/cache   available
Mem:     1019797504   112300032   741744640     8028160   165752832   728563712
Swap:    2147479552           0  2147479552

free -k :以kb的形式显示,默认kb

[root@host ~]# free -k
              total        used        free      shared  buff/cache   available
Mem:         995896      109668      724360        7840      161868      711488
Swap:       2097148           0     2097148

free -g :以GB的形式显示,不足1G显示0

[root@host ~]# free -g
              total        used        free      shared  buff/cache   available
Mem:              0           0           0           0           0           0
Swap:             1           0           1

free -h :以易懂的形式显示

[root@host ~]# free -h
              total        used        free      shared  buff/cache   available
Mem:           972M        107M        707M        7.7M        158M        694M
Swap:          2.0G          0B        2.0G

free -l:显示高低内存统计信息

[root@host ~]# free -l
              total        used        free      shared  buff/cache   available
Mem:         995896      109840      724188        7840      161868      711316
Low:         995896      271708      724188
High:             0           0           0
Swap:       2097148           0     2097148

free -t:显示Mem+Swap = Total

[root@host ~]# free -t
              total        used        free      shared  buff/cache   available
Mem:         995896      109548      724480        7840      161868      711608
Swap:       2097148           0     2097148
Total:      3093044      109548     2821628

------------------------------------------------------------------------------------------------------- 返回目录

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值