CentOS 6 和 CentOS 7 的 free 命令差异对比
CentOS 6 和 CentOS 7 的 free 命令主要有以下差异和对比:
-
参数选项不同:CentOS 6 的 free 命令默认不显示 buffers/cache 的信息,可以使用 '-/+ buffers/cache' 选项显示;而 CentOS 7 的 free 命令默认显示 buffers/cache 的信息,可以使用 '-o' 选项关闭。
-
显示信息不同:CentOS 6 的 free 命令显示的是物理内存和交换空间的使用情况,而 CentOS 7 的 free 命令显示的是物理内存、交换空间和内存缓存的使用情况。
-
格式不同:CentOS 6 的 free 命令输出的格式为表格形式,而 CentOS 7 的 free 命令输出的格式为类似于 'cat /proc/meminfo' 的形式。
-
数据解释不同:CentOS 6 的 free 命令中 'buffers' 和 'cache' 所占用的内存属于可用内存,而在 CentOS 7 的 free 命令中,这部分内存属于已使用内存。
总的来说,CentOS 7 的 free 命令更加详细、直观,能够更好地反映内存的使用情况。但是,对于一些老版本的应用程序,可能会需要使用 CentOS 6 的 free 命令的输出格式。
原文地址: https://www.cveoy.top/t/topic/lEfx 著作权归作者所有。请勿转载和采集!