title: How to run a julia script through terminal
body: <p>I have a script <code>main.jl</code> which prints a simple &quot;Hello world&quot; string:</p>
  <p><code>println(&quot;Hello world!&quot;)</code></p>
  <p>However, when trying to run the script through the terminal like this:</p>
  <p><code>julia&gt; main.jl</code></p>
  <p>I get the error:</p>
  <p><code>ERROR: type #main has no field jl</code></p>
  <p>All the information I can find online suggests calling the script like I do to run it. I have assured that I'm in the correct directory - what am I doing wrong?</p>