General
cancel
Showing results for 
Search instead for 
Did you mean: 

how to find big file in current DIR,and recently updated file also

AA786
Frequent Advisor

how to find big file in current DIR,and recently updated file also

how to find big file in current DIR(above defined mb/kb),and recently updated file also

thanks
Aarun
4 REPLIES
Ivan Krastev
Honored Contributor

Re: how to find big file in current DIR,and recently updated file also

See this page for find tutorial - http://www.softpanorama.org/Tools/Find/find_mini_tutorial.shtml

for example use this:

-mtime +7 Matches files modified more than 7 days ago
-atime -2 Matches files accessed less than 2 days ago
-size +100 Matches files larger than 100 blocks (50K)


regards,
ivan



AA786
Frequent Advisor

Re: how to find big file in current DIR,and recently updated file also

pls give me full commnd....
Ivan Krastev
Honored Contributor

Re: how to find big file in current DIR,and recently updated file also

Files modified more than 7 days ago:
find . -xdev -mtime +7 -type f -print

big files (over 100mb) :

find . -size 100000000c -print


regards,
ivan
AA786
Frequent Advisor

Re: how to find big file in current DIR,and recently updated file also

Thanks