日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > linux >内容正文

linux

Linux命令free解读

發(fā)布時間:2025/4/16 linux 30 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Linux命令free解读 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

1、free命令

一般用free查看、監(jiān)控系統(tǒng)內存使用情況,free命令是一個顯示系統(tǒng)中空閑和已用內存大小的工具。

free 命令使用/proc/meminfo中的值作為基準來顯示內存利用率信息。

free - displays the total amount of free and used physical and swap memory in the system, as well as the buffers used by the kernel. The shared memory column represents the ’Shmem’ value. The available memory column represents the ’MemAvailable’ value.


2、free參數(shù)

$ free --helpUsage:free [options]Options:-b, --bytes show output in bytes-k, --kilo show output in kilobytes-m, --mega show output in megabytes-g, --giga show output in gigabytes--tera show output in terabytes-h, --human show human-readable output--si use powers of 1000 not 1024-l, --lohi show detailed low and high memory statistics-t, --total show total for RAM + swap-s N, --seconds N repeat printing every N seconds-c N, --count N repeat printing N times, then exit-w, --wide wide output--help display this help and exit-V, --version output version information and exit
3、free輸出

$ free -gtotal used free shared buff/cache available Mem: 58 6 23 0 28 52 Swap: 15 0 15


total:總物理內存大小;

used:已使用的物理內存;

free:完全未使用的物理內存;

shared:應用程序共享的物理內存;

Buffers:緩存塊設備,如用戶目錄、文件metadata等;

Cached:緩存文件;

總結

以上是生活随笔為你收集整理的Linux命令free解读的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。