debian Поик больших файлов (чистка /var/log)

find /var/log -type f -size +10000k -exec ls -lh {} \; | awk '{ print $5 ": " $9 }'

find /var/log -name "*.gz" | xargs -I {} rm {}  
find /var/log -name "*.log.*" | xargs -I {} rm {}
find /var/log -name "*.1" | xargs -I {} rm {}   
find /var/log -name "*.old" | xargs -I {} rm {} 
find /var/log -name "*.old" | xargs -I {} rm {} 

Leave a Reply

Ваш адрес email не будет опубликован. Обязательные поля помечены *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>