Skip to main content
4 events
when toggle format what by license comment
Aug 19, 2020 at 6:48 comment added Qumber 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.
Jun 20, 2012 at 14:06 history edited Michael Mrozek CC BY-SA 3.0
deleted 9 characters in body
Jun 20, 2012 at 13:01 comment added rush 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.
Jun 20, 2012 at 12:31 history answered fromnaboo CC BY-SA 3.0