Operating System - HP-UX
1837971 Members
4860 Online
110124 Solutions
New Discussion

How to find big new files

 
SOLVED
Go to solution
Remko Oosenbrug
Contributor

How to find big new files

One of my filesystems is running out of space repeatedly. So I want to search for files that has been created for the last week or so and put them in a list sorted on size. How can I do that??
OH No. It's happening again
4 REPLIES 4
Alexander M. Ermes
Honored Contributor

Re: How to find big new files

Hi there.
Try this :
find / -mtime 1 ( modified yesterday )
or
find / -size c 1000000 ( 1 million chars )
find / -size n 1000000 ( 1 million blocks)

Rgds
Alexander M. Ermes
.. and all these memories are going to vanish like tears in the rain! final words from Rutger Hauer in "Blade Runner"
Robin Wakefield
Honored Contributor
Solution

Re: How to find big new files

Hi Remko,

Try the following:

find /filesystem -mtime -7 -type f | xargs ll | sort +4n

Rgds, Robin.
Carlos Fernandez Riera
Honored Contributor

Re: How to find big new files


find / -type f -mtime -7 -size +1000000c

will find all cretated or modifyed last 7 days.
unsupported
Wodisch
Honored Contributor

Re: How to find big new files

Hello,

the attached script will tell you ALL added/deleted or
modified files...
You have to provide two lists: BEFORE and AFTER
After the test, the new AFTER list becomes the next
BEFORE list.

HTH,
Wodisch