Y'all just made my day. These are the basic tasks I've been slogging through the hard way on my overfilled Slackbox. Thanks for the tips!<br><br><div class="gmail_quote">On Thu, Feb 24, 2011 at 2:27 PM, Jerald Sheets <span dir="ltr"><<a href="mailto:questy@gmail.com">questy@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<br>
My favorite (on systems that don't have well laid out filesystems...i.e. / and swap) is<br>
<br>
du -a |sort -nr |less<br>
<br>
Sure, it's in blocks, but it shows you the largest files in descending order of size. I usually go after those in the top 10 and that generally handles my problem.<br>
<br>
- --j<br>
<div><div></div><div class="h5"><br>
<br>
<br>
<br>
On Feb 24, 2011, at 12:56 PM, <a href="mailto:jwkite@gmail.com">jwkite@gmail.com</a> wrote:<br>
<br>
> My favorite command for identifying which directories are causing space problems is: du -h --max-depth=1 which shows the size of each directory in human readable form without the details. I also like du -- max-depth=1 | sort -n to show the directories from largest to smallest.<br>
><br>
> I know most of the experts here may know these commands, but it took me years to find them and I hope it may help someone else.<br>
> Josh Kite<br>
> Sent via BlackBerry by AT&T<br>
><br>
> -----Original Message-----<br>
> From: James Sumners <<a href="mailto:james.sumners@gmail.com">james.sumners@gmail.com</a>><br>
> Sender: <a href="mailto:ale-bounces@ale.org">ale-bounces@ale.org</a><br>
> Date: Thu, 24 Feb 2011 12:40:33<br>
> To: Atlanta Linux Enthusiasts<<a href="mailto:ale@ale.org">ale@ale.org</a>><br>
> Reply-To: Atlanta Linux Enthusiasts <<a href="mailto:ale@ale.org">ale@ale.org</a>><br>
> Subject: Re: [ale] how do I view system logs / check disk space<br>
><br>
> There is the GNOME Log Viewer[1] that you could use. The logs you<br>
> can't view are limited to root access. So you can view them if you use<br>
> a privileged account.<br>
><br>
> There are two commands for checking disk space: `du` and `df`. `du`<br>
> will tell you how much space a specific directory tree is using, and<br>
> `df` will report the free space on all mounted file systems. If you<br>
> want to find large files, you could do `find /some/directory -type f<br>
> -size +20MB` to find all files larger than 20MB. KDirState[2] would<br>
> allow you to explore the large files on your system in a graphical<br>
> manner. Looks like Ubuntu has a GNOME version[3].<br>
><br>
> [1] -- <a href="http://library.gnome.org/users/gnome-system-log/" target="_blank">http://library.gnome.org/users/gnome-system-log/</a><br>
> [2] -- <a href="http://kdirstat.sourceforge.net/" target="_blank">http://kdirstat.sourceforge.net/</a><br>
> [3] -- <a href="https://help.ubuntu.com/community/Baobab" target="_blank">https://help.ubuntu.com/community/Baobab</a><br>
><br>
> On Thu, Feb 24, 2011 at 12:17 PM, Ron Frazier<br>
> <<a href="mailto:atllinuxenthinfo@c3energy.com">atllinuxenthinfo@c3energy.com</a>> wrote:<br>
>> I was trying to view some of the logs in /var/log with gedit. I have<br>
>> some questions.<br>
>><br>
>> Is there a gui based log viewer where I can pick the log from a list and<br>
>> view it quickly?<br>
>><br>
>> There are some logs such as wtmp which gedit cannot edit. Is there a<br>
>> way to access those.<br>
>><br>
>> Also, what's the command to check how much disk space you're using and<br>
>> how much each thing in a directory is using?<br>
>><br>
>> Sincerely,<br>
>><br>
>> Ron<br>
>><br>
>> --<br>
>><br>
>> (PS - If you email me and don't get a quick response, you might want to<br>
>> call on the phone. I get about 300 emails per day from alternate energy<br>
>> mailing lists and such. I don't always see new messages very quickly.)<br>
>><br>
>> Ron Frazier<br>
>><br>
>> 770-205-9422 (O) Leave a message.<br>
>> linuxdude AT <a href="http://c3energy.com" target="_blank">c3energy.com</a><br>
>><br>
>> _______________________________________________<br>
>> Ale mailing list<br>
>> <a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
>> <a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
>> See JOBS, ANNOUNCE and SCHOOLS lists at<br>
>> <a href="http://mail.ale.org/mailman/listinfo" target="_blank">http://mail.ale.org/mailman/listinfo</a><br>
>><br>
><br>
><br>
><br>
> --<br>
> James Sumners<br>
> <a href="http://james.roomfullofmirrors.com/" target="_blank">http://james.roomfullofmirrors.com/</a><br>
><br>
> "All governments suffer a recurring problem: Power attracts<br>
> pathological personalities. It is not that power corrupts but that it<br>
> is magnetic to the corruptible. Such people have a tendency to become<br>
> drunk on violence, a condition to which they are quickly addicted."<br>
><br>
> Missionaria Protectiva, Text QIV (decto)<br>
> CH:D 59<br>
><br>
> _______________________________________________<br>
> Ale mailing list<br>
> <a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
> <a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
> See JOBS, ANNOUNCE and SCHOOLS lists at<br>
> <a href="http://mail.ale.org/mailman/listinfo" target="_blank">http://mail.ale.org/mailman/listinfo</a><br>
><br>
> _______________________________________________<br>
> Ale mailing list<br>
> <a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
> <a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
> See JOBS, ANNOUNCE and SCHOOLS lists at<br>
> <a href="http://mail.ale.org/mailman/listinfo" target="_blank">http://mail.ale.org/mailman/listinfo</a><br>
<br>
</div></div>#!/jerald<br>
Linux User #183003<br>
Ubuntu User #32648<br>
Public GPG Key: <a href="http://questy.org/js.asc" target="_blank">http://questy.org/js.asc</a><br>
<br>
- -----BEGIN GEEK CODE BLOCK-----<br>
Version: 3.1<br>
GIT/MU d-@ s++(++)>+++:> a+ C++++(+++)$>++ UBLAVHSC++(on)$>++++ P++(+++)$>++++ L++(++++)$>+++ !E---(---)>--- W+(++)$>+++ N(+)$>++ !o !K-- w(--)>--- O()@> M++(++)$>++ V()>- PS+++()@>-- PE(++)@>+ Y+(+)@>+ PGP++(++)$>+++ t+(++)@>+++ 5(+)@>+ X+(++)@>+++ R+(+)@>++ tv-(+)$>++ b+++(++)$>++ DI++++(++)>+++ D++(++)@>++ G++(++)@>++ e++(++)$>++ h(-)$>- r+++(+++)@>+++ y+(+++)>++++@<br>
- ------END GEEK CODE BLOCK------<br>
<br>
<br>
<br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1.4.11 (Darwin)<br>
<br>
iQEcBAEBAgAGBQJNZrE8AAoJEAek0rkZiSvcW04H/RPXfR/Q0BFSpEdNhSYJxYAB<br>
od39kc4Ec1tdVg9yMR4sxIek+GfVxBi/6L5VqYRK1vmWQODx2ybJr8gRpP+ViviV<br>
EU3V38iZgjZletb2UnKMBPkPoB7PVmsdNLd6xrRs8ur3S7aXPeOvcUTS26HgIQoy<br>
RqxMvP+dWIJInV05rN24roIM35WwFlEcxgRTdjZkjqMlerb57rMX3hc2F85Rk1Du<br>
gbryWXroefg84b/sAX8/w/22373GjbmNMIfiTDjtx5H2a0XPeQm6EIclNkUpy/ur<br>
Dx2EGPk50uRL020d6IgCohD/IVBp4UvrbkavVZtdkfK+3NepMCDhzV5IiAjLYv8=<br>
=V9wD<br>
-----END PGP SIGNATURE-----<br>
<div><div></div><div class="h5"><br>
_______________________________________________<br>
Ale mailing list<br>
<a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
<a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
See JOBS, ANNOUNCE and SCHOOLS lists at<br>
<a href="http://mail.ale.org/mailman/listinfo" target="_blank">http://mail.ale.org/mailman/listinfo</a><br>
</div></div></blockquote></div><br>