What is the easiest way to clear all the /var/log/ logs so that it just looks like a fresh system? I know that the fresh system also have logs, but I don't acctualy need the old ones....

link|improve this question
feedback

1 Answer

up vote 0 down vote accepted

If you need to truncate logs:

cd /var/logs
for i in *
do test -f $i -a -s $i && > $i
done
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.