I wrote a shell script for my Raspberry Pi and made it executable. When I run
./filename.sh, I see an error:
bash: ./filename.sh: bin/bash: bad interpreter: No such file or directory
I wrote this script in the default directory (
/home/pi). After the error occurred, I put a copy of the script on my desktop but I see the same error.
What is the problem and solution?