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

 

Was dit antwoord nuttig? 0 gebruikers vonden dit artikel nuttig (0 Stemmen)