Re: Filesystem at 100% capacity, what files are large?
From: Oscar del Rio (delrio_at_mie.utoronto.ca)
Date: 08/01/03
- Next message: Greg Andrews: "Re: print text file with font size 8"
- Previous message: Juergen Keil: "Re: Problem in installing Solaris(Intel) 8.0 on pentium pc"
- In reply to: Dr. David Kirkby: "Re: Filesystem at 100% capacity, what files are large?"
- Next in thread: Dr. David Kirkby: "Re: Filesystem at 100% capacity, what files are large?"
- Reply: Dr. David Kirkby: "Re: Filesystem at 100% capacity, what files are large?"
- Reply: Alan Coopersmith: "Re: Filesystem at 100% capacity, what files are large?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 1 Aug 2003 18:37:20 GMT
Dr. David Kirkby wrote:
>>I was wondering if anyone had a script to find files with a directory
>>and through the sub-directory path that are of a large size or over a
>>specified size so that I can avoid these problems ahead of time in
>>the future.
>
>
> find / -size +50000000b
>
> will find files over 50,000,000 bytes. In fact, if you replace the 'b'
> by 'k', you can find files in kb, rather than bytes, which is a bit
> more useful I would admit.
I don't know what you are running but in Solaris there is no 'b'
or 'k' option in "find -size", only 'c' for bytes.
man find
-size n[c]
True if the file is n blocks long (512 bytes per
block). If n is followed by a c, the size is in bytes.
Solaris (9) find command does not complain about the 'b' or 'k'
suffixes but seems to ignore them, reverting to number of blocks.
Also, avoid searching from the / as it might hang in
special directories (/proc, /xfn) or take forever searching NFS mounts,
unless you restrict the search to the local device.
find /usr /var /export/home -mount -type f -size +10000000c -ls
- Next message: Greg Andrews: "Re: print text file with font size 8"
- Previous message: Juergen Keil: "Re: Problem in installing Solaris(Intel) 8.0 on pentium pc"
- In reply to: Dr. David Kirkby: "Re: Filesystem at 100% capacity, what files are large?"
- Next in thread: Dr. David Kirkby: "Re: Filesystem at 100% capacity, what files are large?"
- Reply: Dr. David Kirkby: "Re: Filesystem at 100% capacity, what files are large?"
- Reply: Alan Coopersmith: "Re: Filesystem at 100% capacity, what files are large?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|