Prompt permission denied about running commands in shell

-sharp!/bin/bash
files= $(find . -name "*.js")

run . / ch.sh
Tip

in the current directory
./ch.sh: line 2: ./_demo/index.js: Permission denied
Mar.13,2021

because your = has an extra space on the right


read the error because you don't have permission. Check to see if the file index.js has permission to execute x ?


find the index.js file to weight: sudo chmod + x index.js

Menu