CPU
top -b -n1 | grep -Po '[0-9.]+ id' | awk '{printf "%.2f%\n", 100-$1}'
0.60%
Memory
free | grep Mem | awk '{printf "%.2f%\n", $3/$2*100}'
32.83%
free | grep Mem | awk '{printf "%.2fGB\n", $2/1024/1024}'
23.53GB
free | grep Mem | awk '{printf "%.2fGB\n", $3/1024/1024}'
7.73GB
Disk
df . | sed -n '1!p' | awk '{total += $2; used += $3;} END {printf "%.2f%\n", used/total*100}'
76.33%
df . | sed -n '1!p' | awk '{sum += $2} END {printf "%.2fGB\n", sum/1024/1024}'
97.38GB
df . | sed -n '1!p' | awk '{sum += $3} END {printf "%.2fGB\n", sum/1024/1024}'
74.33GB