tekdns

Well-Known Member
Jun 9, 2002
100
0
316
Hi,

How to cleaning all system log files?

and

How to automatic cleaning all system log files?

(Step by step please)

Thanks
 

NNNils

Well-Known Member
Sep 17, 2002
580
0
166
You could create a cron job for it.

i.e. let it run

rm -rf /var/log/*.?

every week.

This will clean all logs with a number, like messages.1

BTW I am not sure if this is correct, please first consult someone else before doing this.
 

sexy_guy

Well-Known Member
Mar 19, 2003
848
0
166
Originally posted by NNNils
You could create a cron job for it.

i.e. let it run

rm -rf /var/log/*.?

every week.

This will clean all logs with a number, like messages.1

BTW I am not sure if this is correct, please first consult someone else before doing this.
You have got to be kidding. Every heard of log rotation?
 

NNNils

Well-Known Member
Sep 17, 2002
580
0
166
But, I am removing these logs manually now already every now and then, why not automate this process?

Sorry if this is a stupid question.