Skip to content

Instantly share code, notes, and snippets.

@martinhansdk
Last active January 3, 2016 13:39
Show Gist options
  • Save martinhansdk/8470790 to your computer and use it in GitHub Desktop.
Save martinhansdk/8470790 to your computer and use it in GitHub Desktop.
Space used by files the past seven days.
#!/bin/bash
find /data/files -ctime 7 -type d -print0 | du --files0-from=- -m | awk '{i+=$1} END {print i}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment