aboutsummaryrefslogtreecommitdiff
path: root/.scripts/ram_usage.sh
blob: b611831487f3675b55aac6e93772ce7b85632f8b (plain)
1
2
3
#!/bin/bash

free | awk '/^Mem/ { printf("%.0f%\n", $3/$2 * 100.0) }' | tr -d '\n'