Operating System - HP-UX
1830899 Members
3248 Online
110017 Solutions
New Discussion

Re: Command/Script to display largest most recently created files

 
SOLVED
Go to solution
Khalil Ahmed
Frequent Advisor

Command/Script to display largest most recently created files

Can anyone suggest a unix command/script that I can use that will recursively traverse the directory tree and display all files ordered by creation date and size, i.e. I want to display the largest most recently created files on the system.

In fact, what would be even better is if I could specify a file size as a parameter to the command/script and I get back only those files that are larger than the specified file size (hope I???m not asking too much!).

Many thanks

Khalil
SAP/Oracle DBA

PS: Not too many responses please, not interested in the cleverest way of doing it just one that will work and give me the result I require ??? thanks.
2 REPLIES 2
Vijeesh CTK
Trusted Contributor

Re: Command/Script to display largest most recently created files


hi

use this command

# ls -Rlt | sort -rnk 5,5 | more


Regards,

Vijeesh CTK
federico_3
Honored Contributor
Solution

Re: Command/Script to display largest most recently created files

Do like this to find files greater then 10 MBs


find DIR -type f -size +10000000c -exec ll {} \;


ciao
Federico