my-scripts/space-usage-update

3 lines
178 B
Plaintext
Raw Permalink Normal View History

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