Delete files less than XMB

1 Jun    porn for geeks

Hi, thought this might come in handy to people,  kind of got a situation where i had lots of rubbish <30M files that i needed to wipe out, did it like this:

find ./ -type f -size -30M -exec rm -f {} +

 

ofcourse there are several ways to do this, this is just one way :p.

Remember to be careful with that, its rm -f after all.

 

Screenshot from 2015-06-01 18:14:58

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload the CAPTCHA.

This site uses Akismet to reduce spam. Learn how your comment data is processed.