mirror of
https://git.disroot.org/FollieHiyuki/dotfiles.git
synced 2024-11-29 02:38:37 -05:00
8 lines
204 B
Bash
Executable File
8 lines
204 B
Bash
Executable File
#!/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%"
|