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

Related posts:

  1. How To Import a Mysql Database on the Command Line Every so often its useful to import a .sql (exported...

This entry was posted in Centos 5.2, Command Line and tagged , . Bookmark the permalink.

Leave a Reply