elenapan/Scripts/ram.sh
2018-01-21 14:19:40 +02:00

11 lines
260 B
Bash
Executable file

# Icon and percentage
#free -m | awk 'NR==2{printf " %d%%\n", $3*100/$2 }'
# Text and percentage
#free -m | awk 'NR==2{printf "mem %d%%\n", $3*100/$2 }'
# Full
free -m | awk 'NR==2{printf "Memory Usage: %s/%sMB (%.2f%%)\n", $3,$2,$3*100/$2 }'
#  