11 lines
169 B
Plaintext
Raw Normal View History

2020-05-10 13:33:06 +02:00
#!/bin/sh
used() {
2020-05-13 15:07:01 +02:00
df -h "$1" | awk 'NR==2 { print $3 "/" $2 " GB" }' | sed 's/G\//\//g;s/G / /g'
2020-05-10 13:33:06 +02:00
}
root="$(used /)"
home="$(used /home)"
echo "/ $root,  $home"