显示Linux / Ubuntu上的可用内存

时间:2020-01-09 10:44:46  来源:igfitidea点击:

从终端窗口运行此命令。这适用于debian,ubuntu和redhat。

cat /proc/meminfo

我们应该看到类似以下结果:

MemTotal:      3615716 kB
MemFree:        132528 kB
MemShared:           0 kB
Buffers:         50028 kB
Cached:        1572772 kB
SwapCached:      80716 kB
Active:         580208 kB
Inactive:      1142848 kB
HighTotal:     2752384 kB
HighFree:         8576 kB
LowTotal:       863332 kB
LowFree:        123952 kB
SwapTotal:     2104504 kB
SwapFree:      1064540 kB