[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [TEKNIK] voldsom opsvulmet rootpartition efter opgradering



Den 06-06-2011 10:39, Bent Bagger skrev:
On 2011-06-06 08:39, Mogens Kjaer wrote:

Jeg plejer at bruge:

cd /var
du -ks *|sort -n

så får man sorteret efter størrelse, den største til sidst.

"Linux Server Hacks" fra O'Reilly (kan stærkt anbefales) har giver mig
dette, som jeg bruger meget til den slags ting:

alias ducks="du -cks | sort -rn | head -n 11"

Den giver en liste med de 10 største 'syndere', største øverst. Placer
alias'en i f. eks. .bashrc.

Bent


Jeg kører
     du -cks * 2>/dev/null, det giver:

4       X11R6
63932   adm
79668   cache
4       crash
4       db
4       games
51584   lib
28      lock
17121168        log
0       mail
4       opt
248     run
120     spool
37388   tmp
12      yp
17354168        total

Derefter kører jeg
    du -cks log/* 2>/dev/null | sort -rn | head -n 25

8533788 log/messages-20110605
8532768 log/warn-20110605
20584   log/YaST2
10480   log/pk_backend_zypp-1
4388    log/pk_backend_zypp
4164    log/zypper.log
2244    log/cups
1760    log/firewall
1292    log/zypp
1280    log/updateTestcase-2011-05-24-21-06-33
1052    log/warn-20110529.bz2
1004    log/messages-20110529.bz2
792     log/messages-20110604.bz2
768     log/warn-20110604.bz2
720     log/messages
676     log/zypper.log-20110510.bz2
644     log/warn
400     log/zypper.log-20110329.bz2
352     log/kdm.log
348     log/zypper.log-20110311.bz2
316     log/localmessages
300     log/ConsoleKit
276     log/wtmp
248     log/messages-20110427.bz2

Jeg kan vel bare slette /var/log/messages-20110605 og /var/log//warn-20110605?

/esni


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2011-07-01, 02:01 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *