09/06/14

Percentage of memory that is free

Hi, if you want to get a percentage value of free memory on your linux box type this command:

# free | grep Mem | awk '{ printf("free: %.4f %%\n", $4/$2 * 100.0) }'

Nessun commento:

Posta un commento