One way to determine where to start looking is via find:

find / -mtime -1 -type f -print | xargs ls -ld

This will find all files touched within the list day.

If you get the gnu version of find, you can use '-mmin -30' to find all
files touched in the last 30 minutes.

You can then play with sort, and sort on the size of the file and pipe
it through head to see the most recently touched files.

eg.

find /u03 -mtime -1 -type f -print | xargs ls -ld | sort -nr -k5.1|head -5

This command finds all files in the /u03 file system that have been
touched in the last day, pipes it to ls, sorts in reverse by file size
and then shows you the five largest files.

You can run this on /, it will probably take several minutes.

Jared




"Naveen, Nahata (IE10)" <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]

 01/23/2004 12:44 AM
 Please respond to ORACLE-L

       
        To:        Multiple recipients of list ORACLE-L <[EMAIL PROTECTED]>
        cc:        
        Subject:        OT: Solaris: Finding the cause for disk space growth



Hi All,
 
Sorry for an OT question, but nowhere else to go. Pretty new to Solaris so might be a naive question. Need a pointer on how to do this.
 
The disk space in the machine is constantly decreasing. And I want to know which files/directories are growing.
 
Is there any way to find out?
 
Regards
Naveen

Reply via email to