On Fri, 26 Feb 1999, ^Mr^ wrote:
> since i'm linux on a 400 mb hd , i would like to know what files that
> appear everyday that aren't important and that i can delete ..example -
> , the log files , which files can i delete , the tmp files , core files
> , bash_history , etc .. ( my hd is now 90 % full )
If you don't have some scripts to rotate the logs than get some.
$HOME/.bash_history will refill so this is a bad idea. Better read the
bash man page and there you will find how to set this file to be smaller.
Anyway, you won't get too much space this way (by default it will have
just 1000 lines which ain't too much). So far I can't see any tmp file on
my computer. So you can delete them, but make sure before if that file
can be deleted safe. core files are for debugging purposes only so you
can even make a cron job to hunt for these files.
Else, print and than delete some documentation - if you feel safe
enough, although I won't do it in your place (I have only 250M for Linux).
Check the files in /usr/doc. There are a lot of READMEs that can
be deleted. Also there should be some TODO files which are irelevant to
you. Than the GNU Licence is excellent, but it's rather large so chech if
you have it in more than one copy.
Try uninstalling the parts you don't use. People tend to install
a lot of packages and use only part of them. Than try to settle for one
application for one job. For example you might have emacs, vim, jed and
joe installed. All of them are text editors. So decide what's your
favorite and uninstall the rest. Same for documentation. There are the
info pages and the man pages. The info pages contain more informations.
So they are also bigger. And I've seen I can work only with the good old
man pages. Chose between man and info. I mean the documentation part.
The man and info utilities are usefull to have. But beware that emacs can
read info pages!
Check (RH does this by default) for formatted man pages. I mean
the man pages get formatted, and this formatted version gets stored
somewhere in the var directory - it will be a good idea to check them
yourself so I won't tell you the exact location. If you delete these
pages you will have to wait a bit more before accessing informations via
man but you will save some space.
If you have the Linux source tree unpacked and you compiled the
kernel at least once, than go in /usr/src/linux and give make clean (as
root). This can free a couple of megs as well.
And remeber that it's sane to keep some 10-15M free just in case
you do some compiling.
Raider
--
``Liberate tu-temet ex inferis''