1. To get the details of total ram, ram usage, free available ram.

free -m

 

2. The command for the percentage of memory in use

free | grep Mem | awk ‘{print $3/$2 * 100.0}’

 

3. The command for the percentage of memory that’s free

free | grep Mem | awk ‘{print $4/$2 * 100.0}’

 

آیا این پاسخ به شما کمک کرد؟ 0 کاربر این را مفید یافتند (0 نظرات)