Last active
November 11, 2015 22:44
-
-
Save jalex19100/610da4c42ed65b85ef2b to your computer and use it in GitHub Desktop.
UNIX magic
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# show any ghost/phantom resources that could still be affecting df but have been deleted | |
lsof +L 1 /home | grep -i deleted | |
# hog | |
du -sk * | |
# add up the hogs | |
du -sk * |sort -n| awk {'print $1'}| paste -sd+| bc | |
# use date to get the date 30 days ago | |
date +%F -d "now - 30 days" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment