Linux chown -R parameter, what does it mean

nomnom picture nomnom · Jul 13, 2013 · Viewed 82.6k times · Source

The explanation is:

"-R, --recursive

operate on files and directories recursively"

What does "recursive" mean here?

Answer

devnull picture devnull · Jul 13, 2013

"Recursive" implies that the operation will be performed for all files and directories (and all files and directories within any directory). So

chown -R foo /some/path

would change file owner to foo for all files and directories in /some/path

p.s. You might have even seen the dictionary entry for recursive:

recursive, n: See recursive