Jump to content

Command Crate ¿about?

Clean cPanel logs for specific terms and remove recent files

find ~/logs ~/access-logs ~/tmp/{analog,awstats,webalizer,webalizerftp} ~/.trash -type f \( -name "*djura*" -o -name "*dura*" -o -name "*80a5ai3dd*" -o -name "*pohokolius*" -o -name "*90a3ac" \) -mtime 0 -exec rm -f {} \;

Searches and removes log files from specific directories in cPanel that contain certain keywords (e.g., "djura", "dura", etc.), limiting the search to files modified within the last 24 hours.

log management [kb:91]