freeコマンドは、Linuxシステムで使用されるメモリの空き容量や使用状況を表示するためのコマンドです。
| 単語 | 説明 |
|---|---|
| Mem | 物理メモリ |
| Swap | スワップメモリ |
| total | 総容量 |
| used | 使用容量 |
| free | 空き容量 |
| shared | 共有メモリ |
| buff/cache | バッファ/ページキャッシュ |
| available | 実際に利用可能容量 |
free
【dirディレクトリにいる場合】
『キロバイト単位』
[tomoji@10moji-blog.com dir]$ free
total used free shared buff/cache available
Mem: 3625344 332864 3053056 20672 239424 2889728
Swap: 4194240 0 4194240
『ギガバイトやメガバイト単位』
[tomoji@10moji-blog.com dir]$ free -f
total used free shared buff/cache available
Mem: 3.5G 322M 2.9G 20M 233M 2.8G
Swap: 4.0G 0B 4.0G