[GLLUG] Managing space in disk.

Richard Houser rick at divinesymphony.net
Sun Mar 27 23:03:20 EDT 2016


I use this command, and then I drill down into directories based on what
makes sense:

du -s -k * | sort -n

On Sun, Mar 27, 2016 at 8:33 PM, Erin Landis <erin.landis at msufcu.org> wrote:

> As far as identifying what is taking up disk space, I always went about it
> the old fashioned way, with 'du':
>
> 'du -h / --max-depth 1 | less'
>
> Then go from there.
>
> 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.
>
> Erin Landis
> Linux Systems Engineer
> Office - 1-517-664-7818
>
> -----Original Message-----
> From: linux-user [mailto:linux-user-bounces at egr.msu.edu] On Behalf Of Ben
> Chavez
> Sent: Thursday, March 24, 2016 12:11 PM
> To: linux-user at egr.msu.edu
> Subject: [GLLUG] Managing space in disk.
>
> 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"
>
> 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.
>
> 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
> _______________________________________________
> linux-user mailing list
> linux-user at egr.msu.edu
> http://mailman.egr.msu.edu/mailman/listinfo/linux-user
>
> ________________________________
> 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
> internalaudit at msufcu.org<mailto:internalaudit at msufcu.org>.
> _______________________________________________
> linux-user mailing list
> linux-user at egr.msu.edu
> http://mailman.egr.msu.edu/mailman/listinfo/linux-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.egr.msu.edu/mailman/public/linux-user/attachments/20160327/b87439f7/attachment.html>


More information about the linux-user mailing list