How to clean up the file system?
- From: Merlin <ngroups@xxxxxxxxxxx>
- Date: Sat, 01 Apr 2006 13:20:53 +0200
Hi there,
I am trying to clean up the files not needed on my server. Does somebody
know what the command is to find files on the system that are bigger than 1 MB?
I usually use ls -h to see the filesize of each file within a directory.
What I do not know how to do is:
1. find out the complete file size of a directory including all files belonging to it.
2. crawl a directory for files that are bigger than 1 MB e.g.
Somehow my filesystem is almost full. Especially hda5. No idea how that swoll up to almost 100%. The server starts crashing once 100% are reached. I had this 2 times. But I can not find files that I can delete within /usr
Here is the df -h output:
Filesystem Size Used Avail Use% Mounted on
/dev/hda1 510M 181M 303M 38% /
/dev/hda5 4.9G 4.7G 245M 96% /usr
/dev/hda6 4.9G 310M 4.6G 7% /var
/dev/hda7 63G 52G 11G 84% /home
tmpfs 501M 5.4M 496M 2% /tmp
tmpfs 20M 0 20M 0% /dev/shm
Thank you for any advice,
Merlin
PS: It is suse 9.x and I can not simply reinstall since this is a live web server.
.
- Follow-Ups:
- Re: How to clean up the file system?
- From: Ulick Magee
- Re: How to clean up the file system?
- From: Gonzalo
- Re: How to clean up the file system?
- From: houghi
- Re: How to clean up the file system?
- From: Andreas Stieger
- Re: How to clean up the file system?
- From: Andreas Stieger
- Re: How to clean up the file system?
- Prev by Date: Re: SUSE 10.0 doesn't boot after adding hard drive.
- Next by Date: Re: Crash
- Previous by thread: Re: Need Software RAID Help
- Next by thread: Re: How to clean up the file system?
- Index(es):
Relevant Pages
|