Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What command(s) do I use to search all volumes for files >1mb?

Status
Not open for further replies.

630111

MIS
Oct 30, 2001
127
US
In case you're wondering, I'm trying to find out what files are causing several volumes to come close to capacity so I can delete or archive them. If anyone knows a better way of doing this I'd welcome any ideas.
Thanks!

 
See if this helps...

find . -ls | awk '{print $7 " ==> " $11 }' |sort -rn|more

 
This should also do the trick:

find . -size +1000000c -exec ls -la {} \; | pg

HTH.
 
Sorry, forgot to say, if you want to search all filesystems, issue the command from the root directory /.
Cheers.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top