find /mydir -name '*.sh'|xargs chmod +x
chmod recursively set file permissions
Sometimes when the folder is copied, the problem of permission loss occurs through the Windows transfer. Executable permissions, in particular, cause runtime trouble. Transfer by compressed file, there are many inconveniences when editing. Batch set script files in folders and subfolders to executable commands as follows:
Guess you like
Origin http://43.154.161.224:23101/article/api/json?id=326268891&siteId=291194637
Recommended
Ranking