mirror of
https://git.disroot.org/FollieHiyuki/dotfiles.git
synced 2024-12-02 04:08:30 -05:00
8 lines
204 B
Plaintext
8 lines
204 B
Plaintext
|
#!/bin/sh
|
||
|
|
||
|
mem=$(free -k | grep "Mem")
|
||
|
memtotal=$(echo "$mem" | awk -F' ' '{ print $2 }')
|
||
|
memavail=$(echo "$mem" | awk -F' ' '{ print $7 }')
|
||
|
ramu=$(( 100*(memtotal-memavail)/memtotal ))
|
||
|
echo "異 $ramu%"
|