Jump to content

Find large files in a OSX or Linux


Leon
 Share

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...