Question: Assume that you create a bash shell script named lightBob on a computer running Windows. You then copy the script to a computer running Linux

Assume that you create a bash shell script named lightBob on a computer running Windows. You then copy the script to a computer running Linux and give yourself execute permissions. You attempt to run the script by typing ./lightBob, but receive an error that says #!/bin/bash command not found. You check and the Linux computer does have the bash shell installed in /bin/bash, and you can change to the bash shell at any time. You also check and the line #!/bin/bash is the first line of your script, exactly where its supposed to be. What would you type to correct this error? Note - enter everything you would type on the command line, not just the command.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!