[SOLVED] Problem running scripts
Hello,
When I try to run a script like this, it failed:
$ ./hello_world.sh
bash: ./hello_world.sh: /bin/sh: bad interpreter: Permission non accordée
I must run the script like this:
$ bash ./hello_world.sh
Hello World!
This is the script:
$ cat hello_world.sh
#!/bin/sh
echo Hello World!
These are the permissions:
$ ls -l hello_world.sh
-rwxr-xr-x 1 yugiohjcj yugiohjcj 28 Sep 25 18:23 hello_world.sh
And this is my user identity:
$ id
uid=1000(yugiohjcj) gid=1000(yugiohjcj) groups=20(dialout),24(cdrom),25(floppy),29(audio), 44(video),46(plugdev),1000(yugiohjcj)
Can you explain me why I can't run this script like the first try?
Thank you.