error_log command line question

xman888

Well-Known Member
Nov 23, 2005
61
1
158
Hello,

Is there a command that I can run from the command line for my vps, that will list all of the error_log files on the vps, with how much space each one takes up?

Kind regards,
Anthony
 

xman888

Well-Known Member
Nov 23, 2005
61
1
158
I found a way to find all client error_logs over 10MB:

find /home -type f -size +10000k -name "error_log"
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,201
363
Hello :)

You could also try a command such as:

Code:
find /home -type f -name "error_log" -print0 | xargs -0 du -sh
Thank you.