find /opt/tomcat/logs/ -mindepth 1 -mtime +5 -delete
Delete all files in a folder older that 5 days (for logs) Print
Modified on: Tue, 29 Apr, 2025 at 11:28 AM
Did you find it helpful? Yes No
Send feedbackSorry we couldn't be helpful. Help us improve this article with your feedback.