On Thu, 4 Oct 2001 09:21, Dave Salovesh wrote: > My /var partiton is out of inodes on my DNS server. > > I know why, more or less - I didn't configure it to have any mail > abilities, but I forgot to tell something somewhere about that and now > /var/log/mail has ~260,000 files telling me it can't send mail. It's time > for a build from scratch soon, but I can't do that just yet, and now I need > to add some zones. > > I've tried variations of rm and rmdir, but they all fail for one reason or > another - "too many arguments" for rm, for one thing, and various messages > that I'm trying to remove a directory for another - even when I -df it or > --ignore-fail-on... it. I just want all those files gone. > > How to I clear out that directory?
Did you try : rm -rf /var/spool/mail ? the -r is the important bit - it stands for 'recursive' and will delete directories as well as files. The -f stands for 'force', meaning it won't prompt you each time. WARNING!! Be very careful you get this command right, fatal things can happen to your system if you recursively delete the wrong directory (ie: /). -- PGP key : http://n12turbo.com/tarragon/public.key
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
