12 lines
179 B
Plaintext
12 lines
179 B
Plaintext
|
#!/bin/sh
|
||
|
|
||
|
used() {
|
||
|
df -h "$1" | awk 'NR==2 { print $3 "/" $4 " GB" }' | sed 's/G\//\//g;s/G / /g'
|
||
|
}
|
||
|
|
||
|
root="$(used /)"
|
||
|
home="$(used /home)"
|
||
|
|
||
|
echo ""
|
||
|
echo "/ $root, $home"
|