Clean old log files

Hi,

I want to remove old log files (more than 7 days log files), rest of the logs should be present on my Linux box. could some one please give me any thoughts.

Thanks.

Search for Clean old log files.

Use our internal Google search engine or our advanced internal search engine. You can also search our huge UNIX and Linux database by user generated tags or search the database for unanswered questions and provide an answer.

Thank you.

The UNIX and Linux Forums

Take a look at find with the mtime option, or check out logrotate (should be available with all major distros)

Thank you