The best method incorporates the lfs find command:
lfs find <subdirectory> | xargs chgrp <new group>chmod or chown commands with -R option (or using the normal find) are not very fast if the subdirectory contains lots of files.
Notes and things that I can't remember when I need them. Mostly technical stuff. Linux-ish. VERY likely things that nobody else will find useful at all. Hence the title...
lfs find <subdirectory> | xargs chgrp <new group>chmod or chown commands with -R option (or using the normal find) are not very fast if the subdirectory contains lots of files.
I am happy to find your distinguished way of writing the post. Now you make it easy for me to understand and implement the concept. Thank you for the post.
ReplyDeleteLustre
Keep up the good work; I read few posts on this website, including I consider that your blog is fascinating and has sets of the fantastic piece of information. Thanks for your valuable efforts. BinaryToday.com
ReplyDeleteMuch appreciated, was looking for a quick reference to accomplish this without nuking the metadata servers.
ReplyDelete