diff options
Diffstat (limited to '.scripts/ram_usage.sh')
-rwxr-xr-x | .scripts/ram_usage.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/.scripts/ram_usage.sh b/.scripts/ram_usage.sh new file mode 100755 index 0000000..b611831 --- /dev/null +++ b/.scripts/ram_usage.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +free | awk '/^Mem/ { printf("%.0f%\n", $3/$2 * 100.0) }' | tr -d '\n' |