Skip to content
Service Servers

Service Servers

  • Cloudbase Solutions
  • Service Servers
Service Servers
Service Servers
Home / Linux / Remove all error_log files from all sub folders
Linux

Remove all error_log files from all sub folders

error_log files always become huge size due to forget to clear it, here is a simple command to be run from the SSH to clear all the error_log files from all sub folders to list all the error_log files on sub folders use the following command find . -name \error_log to delete them all add…

error_log files always become huge size due to forget to clear it,

here is a simple command to be run from the SSH to clear all the error_log files from all sub folders

  1. to list all the error_log files on sub folders use the following command

    find . -name \error_log

  2. to delete them all add the part of “-delete” to the above command to be as

    find . -name \error_log -delete

That is it

Enjoy it !:)

 

Post Tags: #Centos#delete#error#error_log#find#SSH#sub folders

Post navigation

Previous Previous
Change cPanel Mail server main IP
NextContinue
best useful exim commands
  • Troubleshooting VM RAM Allocation Error
  • Synchronize files between servers
  • Check folder and disk size in Linux command
  • IP Tables Block IP and Port
  • .htaccess SSL check problems

    Copyright © 2025 Service Servers

    • Cloudbase Solutions
    • Service Servers
    Search