my-scripts/space-usage-update

3 lines
188 B
Plaintext
Raw Normal View History

2021-08-31 06:25:02 +00:00
#!/bin/bash
df -h | awk '{ if ($6 == "/") printf "/: " $4; if ($6 == "/home") printf " home: " $4; if ($6 == "/usr/local/share/music") printf " music: " $4; }' > $HOME/.cache/free-space