my-scripts/space-usage-update

3 lines
177 B
Bash
Executable File

#!/bin/bash
df -h | awk '{ if ($6 == "/") printf "/: " $4; if ($6 == "/home") printf " home: " $4; if ($6 == "/home/music") printf " music: " $4; }' > $HOME/.cache/free-space