Problems trying to clear hda2 on Linux - Followed these directions

I tried this:


login to the server

cd /usr
du -sm *

what the above command does is cd goes inside /usr and then the second commmad du -sm will report the biggest directory that is inside /usr partition. again, you cd to that folder that is reported the biggest, and run the du -sm * command again. Afer 2-3 levels, you might end up with log files of gb's in size, perhaps apache and/or cpanel logs.

to clear the logs, you need to enter the command

cp /dev/null filename

it will ask for confirmation, which you need to answer with y.


I HAVE DONE:


cd /usr
du -sm *




AND GOT:


33 X11R6
1 aquota.user
94 bin
1 dict
1 doc
1 etc
1 games
9 i386-glibc21-linux
26 include
80 java
4 kerberos
340 lib
1 libexec
2730 local
1 lost+found
14 man
1 quota.user
13 sbin
436 share
222 src
0 tmp
0 usr



I see a bunch of dir.s and not one largest one, so I entered the two commands above again, but got the same thing, meaning I got nowhere.

What to do here?


Thanks

 

 

 

 

Top