• Kühe sind toll
    link
    fedilink
    27 months ago

    What does the a+rw part does? I guess the r is for recursively changing the permissions.

    • @[email protected]
      link
      fedilink
      3
      edit-2
      7 months ago

      Here is the breakdown:

      • chmod is the command to change the mode of the files (-rwxrwxrwx)
      • -R is the recurse flag,
      • a means “all”, you can also have u, g or o (respectively user, group and others) instead.
      • + is add (you can remove with -),
      • rw is the permissions (rw of rwx)

      I prefer changing permissions this way instead of using absolute values (0777 for instance) as it’s easier to reverse if you made a mistake.