Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • 3
    it's much better to use \+ instead of \; in such cases. It will start one process per multiple files insted of one process per file, therefore the job will be done much faster on large amount of files. Commented Jun 20, 2012 at 13:01
  • 1
    If you're doing this for a directory, lose the dot (.) after {}, add recursive -R, and add -type option to find: find . -type d -maxdepth 1 -iname 'ChownFileNames*' -exec chown -R hadoop:hadoop -- {} \;. To find in current as well as all sub folders, lose -maxdepth 1. Commented Aug 19, 2020 at 6:48