Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: deleting unused folders




On 8 Jun 2007, at 22:05, Robert Everson wrote:

sudo find /Users -nouser -prune; 2>/dev/null
This works fine on my test server, identifying the folders that I purposefully left after deleting an LDAP user, however, on our main server it traverses down into the user directories.
[...]

After running a few more tests, I have seen that it does traverse into the lower directories, but only if the main directory doesn't trigger the -nouser action. This is still not what I expected it to do, but it does seem to behave exactly like my test server, so I guess I'll have to deal with it, unless anyone else has a nugget of information that they would like to share.



what about

-maxdepth 1

instead of

-prune


Giuliano _______________________________________________ Do not post admin requests to the list. They will be ignored. Macos-x-server mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/macos-x-server/email@hidden

This email sent to email@hidden
References: 
 >deleting unused folders (From: Robert Everson <email@hidden>)
 >Re: deleting unused folders (From: Robert Everson <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.