Some commands use a lower case
r for their recursive flag while others use a capital letter
cp -r foo/ bar/ chmod -R 777 foobar/
Is there a reason for this?
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.Sign up to join this community
cp actually accepts both.
-R, -r, --recursive copy directories recursively
For consistency, most shell commands use
-R as a recursive flag, probably because they imitate the behavior of
-r, --reverse reverse order while sorting -R, --recursive list subdirectories recursively