1

< - - Linux Noob. I am normally on Raspberry, but the # symbol caused me to move my question here. Attempting to run a script, and failing, I found answers in Raspberry to use the following (preceded by the symbol #):

#!/usr/bin/env python

Link here describes my confusion. I thought # indicated a comment (in Linux and in Raspberry Python). I don't understand the # symbol at the beginning of the command prompt. #!/usr/bin/env python.

Question : Is the # symbol to be typed in?

I suspect the # symbol shows only because that otherwise the command would be executed.

Marla
  • 113

1 Answers1

1

Yes, the # sign must be used. This is a special-case comment called a shebang line that causes the program specified (/usr/bin/env python in your case) to be run with the path to your program as an argument WikiPedia's page on Shebang is very good.

jkt123
  • 3,530
  • 22
  • 24
  • 1
    I saw a reference in my link to "Shebang", but thought that was a slang word. Live and learn. Nice to know. – Marla May 20 '14 at 02:35