Jump to content

Find large files in a OSX or Linux


Leon

Recommended Posts

  • Administrators

Sometimes it can be a bloody hell to find out whats eating up storage space on a linux machine...

Try this one out....

 

# find / -type f -size +20000k -exec ls -lh {} \; 2> /dev/null | awk '{ print $NF ": " $5 }' | sort -nrk 2,2

 

It will give you a list of files larger than 20mb, sorted by size... Enjoy!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...