Home > Centos 5.2, Command Line > How to Find Large Files using Linux Command Line

How to Find Large Files using Linux Command Line

find / -type f -size +20000k -exec ls -lh {} ; | awk ‘{ print $9 “: ” $5 }’

or

find / -type f -size +20000k -exec ls -lh {} ; | awk ‘{ print $9 “: ” $5 }’ > filelist.txt

To put the results in a text file.

Found here, a good resource for command line stuff – http://snippets.dzone.com/posts/show/1491

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • StumbleUpon
  • Reddit
  • TwitThis

No related posts.

  1. No comments yet.
  1. No trackbacks yet.
You must be logged in to post a comment.