Unable to understand Shebang in bash scripting 5 programs

Can anyone please help me , while placing shebang . The absolute path comes to /usr/bin/bash.

So i have entered the below commands

#!/usr/bin/bash
bash questionnarie.sh

So what exactly needs to be done here , I am unable to move forward and understand the concept here ?
Please help .

I’m pretty sure the shebang only needs /bin/bash and I think that’s because you’re the user so already within /usr dir.
I trust someone will correct me if this is a horribly naive answer :sweat_smile:

Hello Karoline,

Appreciate your response. I guess you are right .
Also it was naive from my side , i was entering the commands on the terminal , instead of adding into the script .

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.