Jump to content

Command Crate ¿about?

Display memory usage percentage for each memory category (free, awk)

free -t | tail -n+2 | awk '{($2>0) ? p=$3/$2*100.0 : p=0.0; print "Used " $1 "\t" p "%"}'

Calculates and prints the used memory percentage for each category from the free command output.

system monitoring [kb:243]