This is just some code to get used memory as a percentage:
Can it be simplified?
Code:
free -m | awk ' $1 == "Mem:" { print "(("$3 "/" $2 ")" "*100)"}' | bc -l | cut -d '.' -f -1
Comment