I'm trying to track down the biggest disk users on a disk that is getting full. I usually use the du command for this, but this time I'm getting strange inconsistent results from it that I don't understand.
I have already identified a user that is supposedly using 78GB of space:
# cd /home/userx # du -sxk . 78066324 .
But when run du again on all the files to identify which files are the biggest, I get very different results:
# du -sxk * | sort -n . . . 76240 RPMS 80828 save.oldcomputer 108536 docs 114472 rpmbuild 304652 chef-repo
i.e. the top five directories take up just over 500MB, and if you added up the whole lot including all the little tiny ones, it would still be less than 1GB. So where did the other 77Gb go?