磁盘与存储CLI Manual
$free
Display total amount of free and used physical memory and swap.
命令语法POSIX Standard
free [OPTIONS]在交互式终端沙盒中实时运行
无需安装的客户端实时仿真环境。
bash — terminal
AST Sandbox (Free)
概述与工作原理
`free` provides an instant summary of system RAM and Swap memory utilization. It reports total, used, free, shared, buffer/cache, and available memory.
常用参数与选项说明
| Flag / Option | Description |
|---|---|
| -h, --human | Show memory values in human-readable units (e.g., 8Gi, 512Mi). |
| -m, --mega | Display amounts in megabytes. |
| -g, --giga | Display amounts in gigabytes. |