Find Files Over 10 Megs on your Server Using PuTTY

Posted on September 10, 2007

Q. Every 3 months or so my Appache log file gets so big it stops my server from serving. I can see that it is getting slow now which is usually a sign of this. Can you please investigate and tell me how I can access this file. I have just started using putty so it is new to me. I understand that this is the program I will need to access Appache log file. Please tell me how?

A. The easiest way to identify large files is to run the following command:

find / -size +10240000c -exec du -h {} \;

This will print out a list of all files over 10MB - The Apache logs are located in: /usr/local/apache/ There are 2 directories in here /logs and /domlogs.

Simple guide to using putty

1) Putty Free Download here

2) Enter Host Neam or IP/ SSH enabled

To remove “/home/username/mail/new”.

“rm -rf /home/username/mail/new ; mkdir /home/username/mail/new ; chmod 700 /home/username/mail/new ; chown username:username/home/username/mail/new

This will get rid of mail file in “new” directory.

Approved by Governor- Create Online Business
Stuck on the net

Filed Under Web Design |

Leave a Comment

If you would like to make a comment, please fill out the form below.

Name (required)

Email (required)

Website

Comments

Close
E-mail It