On Fri, Jul 18, 2014 at 9:10 PM, list boy <[email protected]> wrote:
> Right then… does anyone have an app/utility/script that will send a
> warning/note if a file exceeds a set size, if its located in the System
> Library (or maybe any where other than my user folder)?

You can use the following to find anything bigger than 1 GB:

> find /System/ -type f -size +1G

Or this to find anything not in the Users folder:

> find / -not -path '/Users/*' -type f -size +1G

You could combine that with the "mail" command to send any results. I
think "mail" requires that you have an account configured in Mail.app;
I'm not sure of the requirements, but I've seen this tip before.

> find / -not -path '/Users/*' -type f -size +1G | mail -s "Files over 1 GB" 
> [email protected]

And then run that at least once a day from launchd.

-- 
arno  s  hautala    /-|   [email protected]

pgp b2c9d448
_______________________________________________
MacOSX-talk mailing list
[email protected]
http://www.omnigroup.com/mailman/listinfo/macosx-talk

Reply via email to