elenapan/Scripts/disk.sh
2017-08-21 18:31:02 +03:00

4 lines
No EOL
147 B
Bash
Executable file

#df -h | awk '$NF=="/"{printf "Disk Usage: %d/%dGB (%s)\n", $3,$2,$5}'
# show only free space
df -h | awk '$NF=="/"{printf " %dGB\n", ($2-$3)}'