While back my hard drive on my server went maxed out. Hosting company found that someone was storing warez on my server. Well they deleted it and banned the IP. Well they are back and filled up my hard drive again. Im tired of waiting for a response from my hosting company so I am trying to find the files myself. What I am asking is if you can help me out with some unix commands that will help find these files. I looked in the previous spot for them and couldnt find them . Any help would be appreciated with some green!
find ~/ -size +$((1024 * 50000))c -exec ls -lh {} \; That'll find you files bigger than 50MB in your home directory, adjust as needed. Replace -exec ... ; with -delete to delete everything that's found. Edit: Also, do you know how they got into the server? If you've got a dedicated box/vps and you're not "at one" with the command line it might be worth getting someone with some unix foo to give her a shakedown.
says missing argument for -exec I typed in exactly find ~/ -size +$((1024 * 50000))c -exec ls -lh {} \; any ideas?
Thanks you 2. Got the search to work but didnt find anything. Think something else is up. I should have 2 80GB disk drives but in WHM I can only find 20GB accounted for. I really dont like hostgator sometimes.
Well it looks like all my hard drive space is there but something seems wrong. Problem im having is /usr is full and I cant create more accounts. Guess that just means my hosting company needs to reallocate the usage better? /dev/sda7 1012M 223M 738M 24% / /dev/sdb1 68G 85M 64G 1% /backup /dev/sda1 99M 17M 78M 18% /boot /dev/sda5 47G 7.6G 37G 18% /home /dev/sda2 9.9G 9.9G 0 100% /usr /dev/sda3 6.9G 2.0G 4.6G 30% /var /dev/sda6 1012M 34M 927M 4% /tmp none 2.0G 0 2.0G 0% /dev/shm
User accounts belong in /home - /usr is software. Run du -sh /usr/* to locate the big stuff, then move it to /home (since you've got a lot of space there) then create a symlink to it (ln -s /home/usr/bigstuff /usr/bigstuff). It's probably best to find out what's taking up all that space in /usr before you start moving stuff - there shouldn't really be any data stored there. Also, it doesn't look like your "backup" is very comprehensive