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 التصويتات)