如何查看 Linux 内存大小 (附示例)
使用 free -h 命令可以查看 Linux 系统的内存使用情况。
free -h
total used free shared buff/cache available
Mem: 31Gi 1.7Gi 28Gi 28Mi 691Mi 27Gi
Swap: 15Gi 0B 15Gi
或者使用 free 命令查看更详细的内存信息。
[root@localhost ~]# free
total used free shared buff/cache available
Mem: 32730800 1806288 30216416 28672 708096 28879920
Swap: 16431088 0 16431088
根据以上输出信息,内存总共有 31GB。
原文地址: https://www.cveoy.top/t/topic/mXym 著作权归作者所有。请勿转载和采集!