Linux教程
Linux目录
Linux命令
Linux用户
Linux文件
Linux进程
Linux查询
Linux I/O
Linux正则
Linux安全
Linux shell
Linux网络
Linux VI
Linux 系统命令
Linux 其他

Linux free 命令

Linux free 命令

free 命令提供有关已用和未使用的内存使用情况以及系统交换内存的信息。默认情况下,它以kb(千字节)为单位显示内存。
内存主要由RAM(随机存取内存)和交换内存组成。
交换内存是硬盘驱动器的一部分,其作用类似于虚拟 RAM。
语法:
free
Linux free1
看上面的快照,
Line1讲述内存详细信息,例如我们系统中可用的总 RAM、已用 RAM、可用 RAM、共享 RAM、缓冲 RAM 和缓存 RAM。
第 2 行表示已用和可用的缓冲区/缓存内存。
Line3表示总的、已用的和空闲的交换内存。

以不同格式显示RAM

默认情况下,free 命令以kb 格式显示RAM 信息。您可以根据需要以不同的格式显示它。
语法:
free-b    display information in Bytes
free-m    display information in Megabytes
free-g    display information in Gigabytes
Linux free2
免费选项
选项 功能
free -t 显示总内存
free -o 禁用缓冲调整线
free -s 定期更新内存
free -l 显示高低内存大小统计
watch free 允许迭代
昵称: 邮箱:
Copyright © 2022 立地货 All Rights Reserved.
备案号:京ICP备14037608号-4