Linux 命令 - free: 显示系统的内存信息

时间:2023-12-01 15:17:32

命令格式

free [-b | -k | -m] [-o] [-s delay ] [-t] [-l] [-V]

命令参数

-b
  显示内存的单位为 Byte。

-k
  显示内存的单位为 KB。

-m
  显示内存的单位为 MB。

-g
  显示内存的单位为 GB。

-t
  显示内存总和信息。

-o
  不显示缓冲区调节列。

-s delay
  每隔 delay 秒执行一次命令。

-V
  显示版本信息。

实例

a) 显示内存的使用情况

[huey@huey-K42JE ~]$ free
total used free shared buffers cached
Mem: 65967296 56277300 9689996 0 608844 26078536
-/+ buffers/cache: 29589920 36377376
Swap: 33554424 61704 33492720