The prompt permission denied is obviously because administrator privileges are required, you can add in front of the command sudo
The prompt command not found may be because the file does not have execution permission, you can add:chmod +x <.sh 脚本名>
[Problem Solving] The .sh shell script cannot be executed, prompting "command not found", "permission denied"
Guess you like
Origin blog.csdn.net/daoge2666/article/details/131737676
Ranking