The difference between: sudo du -sh /home/jenkins
and sudo du -sh /home/jenkins/*
is that in almost all shells (with the default setttings), *
does not include hidden files or directories. Hidden means names starting with a period (e.g., if there is a /home/jenkins/.temp/
, that would not be included in the second du
).
So it'd appear you have about 289-137=152 GiB of hidden files. The easiest way to find out where they are is something like this:
sudo du -m /home/jenkins | sort -nr | less
Taking off the -s
will make du
show you the subdirectories everything is in, which sounds like what you want. That'll include hidden ones. If that still doesn't find it, add an -a
:
sudo du -am /home/jenkins | sort -nr | less
that will additionally show individual files, in case you have a few very large hidden files. It will probably also take a bit longer to run (adding files often greatly expands the output).
There are also graphical frontends you can use; personally, I use xdiskusage (but maybe just because I've been using it forever):
sudo du -am /home/jenkins | xdiskusage -
/home/jenkins/jobs
? You also mentioned partitions, are you trying to find out what partitions they live on? – NastyDiaper Mar 07 '17 at 17:17