The folder size of /usr keep increasing

August 6th, 2008 | Tags:

As the topic stated, the folder /usr keep increasing and I don’t have enough skill to identify what is it or where exactly the problem source. It could be a log file but even du -ch <dir> I still unable to find it. Any idea?

So far this is the only suggestion that make sense:

[root@webhosting /root]# cd /
[root@webhosting /]# du -k --max-depth=1 /usr | sort -nr
4545976 /usr
1591248 /usr/src
1326160 /usr/share
707120  /usr/lib
452592  /usr/local
156864  /usr/bin
100048  /usr/include
96468   /usr/libexec
81116   /usr/X11R6
32820   /usr/sbin
1412    /usr/kerberos
76      /usr/man
16      /usr/lost+found
16      /usr/etc
8       /usr/games
[root@webhosting /]#

Credit to Guai Guai Zai

  1. nyst.wysrt
    August 6th, 2008 at 22:52
    Reply | Quote | #1

    The possibilities that your /usr keep increasing its size is :
    1) Faulty script that does automated functions that increase your disk usage

    2) A virus, linux usually dont have virus but i think that an automated script that have the functions to increase your disk n memory usage, can cause your system to lag and do more things.

    not really expert in linux but i read about this problem before, forgot where oredy..

  2. sunsuron
    August 14th, 2008 at 22:52
    Reply | Quote | #2

    It was a shell script owned by directadmin that does an automatic update to the software. Finally!