10.7-free命令

free 命令

[root@evan-01 ~]# free
              total        used        free      shared  buff/cache   available
Mem:        1008152      121508      745308        6916      141336      725648
Swap:       2097148           0     2097148
[root@evan-01 ~]# 

free 命令可以查看當前系統的總內存大小以及使用內存的情況。CentOS7 系統的 free 命令顯示結果比 CentOS 6 更加簡潔一些,但大體上的內容是一致的。

上面是說明
第一行是內存的使用情況
第二行是交換分區的使用情況

free -m 按 M 顯示

[root@evan-01 ~]# free -m
              total        used        free      shared  buff/cache   available
Mem:            984         120         725           6         138         706
Swap:          2047           0        2047
[root@evan-01 ~]#

free -h 按合適單位顯示

[root@evan-01 ~]# free -h
              total        used        free      shared  buff/cache   available
Mem:           984M        120M        725M        6.8M        138M        706M
Swap:          2.0G          0B        2.0G
[root@evan-01 ~]#
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章