configs/desktop/scripts/memory.sh

13 lines
179 B
Bash
Raw Normal View History

2022-10-29 16:46:38 -03:00
#!/bin/bash
# More efficient version of the above.
free -h | while read What TTL Used _; do
if [ "$What" = 'Mem:' ]; then
printf '%s/%s \n' "$Used" "$TTL"
break
fi
done