Cleanup unused files and other junk ...

Micah micahjon at ywave.com
Mon Sep 26 15:28:13 PDT 2005



jonas wrote:
> On Mon, 26 Sep 2005 21:50:21 +0200
> Kiffin Gish <kiffin at gish.demon.nl> wrote:
> 
> 
>>Is there a good and dependable procedure for cleaning up the file 
>>systems from unused junk that just clutters valuable disc space?
>>
>>I am already aware of the 'periodic daily' scripts 
>>'clear_tmp_enable=YES' option for the rc.conf file, but where else
>>can one safely remove files.
> 
> 
> -if you ever did a buildworld then you have the compiled base system
> in  /usr/obj, which you can delete.
> -you can scan your filesystem for *.core files (a process creates these
> when it crashes) and delete them.
> -make sure you always do a 'make clean' after installing software from
> the ports. i think portupgrade can scan and cleanup all ports workdirs.
> 
> but i think in most cases much more spaces is wasted with stuff in your
> homedir you forgot about ;)
> well at least this is the case for me ... having a deeper look into my
> $HOME/tmp and $HOME/stuff can quickly free some hundred MBs :)
> 
> cya,
> jonas

For finding those long forgotten things that take up MBs, I've found 
kdirstat (for KDE) to be quite useful.  Helped me free up a few 
gigabytes - all located in my home dir of course. :)

Later,
Micah


More information about the freebsd-questions mailing list