The original link: www.cnblogs.com/anloveslife…

Chmod -r 777 folder parameter -r is recursive. 777 indicates that all permissions are open

chmod 777Test. sh chmod +x A fileCopy the code
  • If you add executable permissions to all: chmod a+x file name;
  • If you add executable permissions to the file owner: chmod u+x file name;
  • To add executable permission to the group, run the following command: chmod g+x file name;
  • To add executable permissions to people outside the group: chmod o+x file name;