You can rotate log file using logrotate software and monitor logs files using logwatch software.
Working on it, will update soon
How to truncate all the log files under /var/log? (I don't want to delete them)
bash# for x in `ls -l /var/log|grep "^-r"|awk '{print $9}'`; do >$x; done
1 comment:
Great reading yyour blog post
Post a Comment