Linux命令-free

显示系统内存使用情况

free  [-m / -g / -h]

[root@localhost test]# free -m
              total        used        free      shared  buff/cache   available
Mem:           1823         715         180          10         927         833
Swap:          2047           0        2047
[root@localhost test]# free -g
              total        used        free      shared  buff/cache   available
Mem:              1           0           0           0           0           0
Swap:             1           0           1
[root@localhost test]# free -h
              total        used        free      shared  buff/cache   available
Mem:           1.8G        715M        180M         10M        927M        833M
Swap:          2.0G         44K        2.0G
[root@localhost test]#
原文地址:https://www.cnblogs.com/tdcqma/p/5848851.html