<div dir="ltr">I use this command, and then I drill down into directories based on what makes sense:<br><div><div><br>du -s -k * | sort -n<br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Mar 27, 2016 at 8:33 PM, Erin Landis <span dir="ltr"><<a href="mailto:erin.landis@msufcu.org" target="_blank">erin.landis@msufcu.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">As far as identifying what is taking up disk space, I always went about it the old fashioned way, with 'du':<br>
<br>
'du -h / --max-depth 1 | less'<br>
<br>
Then go from there.<br>
<br>
I'm sure that could feed into a neat one-liner to point out the heavy-hitters, but I never took the time to write it.<br>
<br>
Erin Landis<br>
Linux Systems Engineer<br>
Office - <a href="tel:1-517-664-7818" value="+15176647818">1-517-664-7818</a><br>
<div><div class="h5"><br>
-----Original Message-----<br>
From: linux-user [mailto:<a href="mailto:linux-user-bounces@egr.msu.edu">linux-user-bounces@egr.msu.edu</a>] On Behalf Of Ben Chavez<br>
Sent: Thursday, March 24, 2016 12:11 PM<br>
To: <a href="mailto:linux-user@egr.msu.edu">linux-user@egr.msu.edu</a><br>
Subject: [GLLUG] Managing space in disk.<br>
<br>
I had an issue recently with an update in Ubuntu where the update manager complained that I didn't have enough free space in the disk to complete the upgrade (My root partition is 25 GB from a 500GB hard drive) I googled how to free up space in Ubuntu and I found this command  "dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | xargs sudo apt-get -y purge"<br>
<br>
I really don't know in detail how that command works but I understand it would remove old headers and images from past kernels upgrades so after the command was done running I had 11 GB available.<br>
<br>
Now I would like to that in other distros that I have installed and I haven't done any cleaning in years. Can you guys share your experience managing disk space? I will be interested to know _______________________________________________<br>
linux-user mailing list<br>
<a href="mailto:linux-user@egr.msu.edu">linux-user@egr.msu.edu</a><br>
<a href="http://mailman.egr.msu.edu/mailman/listinfo/linux-user" rel="noreferrer" target="_blank">http://mailman.egr.msu.edu/mailman/listinfo/linux-user</a><br>
<br>
</div></div>________________________________<br>
This electronic transmission and any information that it contains is the property of MSU Federal Credit Union and is intended for the use of the intended recipient. If you are not the intended recipient, any disclosure, copying or other use of this information is strictly prohibited. If you acquired this transmission in error or feel that any of the information contained within it is offensive or inappropriate, please contact <a href="mailto:internalaudit@msufcu.org">internalaudit@msufcu.org</a><mailto:<a href="mailto:internalaudit@msufcu.org">internalaudit@msufcu.org</a>>.<br>
<div class="HOEnZb"><div class="h5">_______________________________________________<br>
linux-user mailing list<br>
<a href="mailto:linux-user@egr.msu.edu">linux-user@egr.msu.edu</a><br>
<a href="http://mailman.egr.msu.edu/mailman/listinfo/linux-user" rel="noreferrer" target="_blank">http://mailman.egr.msu.edu/mailman/listinfo/linux-user</a><br>
</div></div></blockquote></div><br></div>