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!

Finding big files 1

Status
Not open for further replies.

hermes1

Programmer
Oct 22, 2003
38
US
I recently found out that my site takes up alot of space. I was wondering if there is a simple command i can use in ssh that shows a listing of the biggest files listed by size so i can see if they are still needed. Thank You
 
I don't think "ssh" matters, but here's a FIND command thay might prove helpful:

cd /
find . -type f -size +20000 -mtime +30 -exec ls -l {} \; >/tmp/bigfiles

This will create a listing of any file larger that 10MB, which hasn't been modified in the past 30 days. Change those values to suit your needs.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top