Friday, March 29, 2013

calculate the disk space based on file date

Contributed by PB:

du -h (current usage)

du -ch `find /path/to/files/ -mtime -365` (last one year)

du -ch `find /path/to/files/ -mtime -730` (last two years)


etc.

No comments:

Post a Comment