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}’

 

Bu cevap yeterince yardımcı oldu mu? 0 Bu dökümanı faydalı bulan kullanıcılar: (0 Oy)