Skip to content

Commit abc38a0

Browse files
committed
Removed os specific terminal commands from introduction
1 parent 5f9345b commit abc38a0

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

getting-started/introduction.markdown

+10-7
Original file line numberDiff line numberDiff line change
@@ -48,18 +48,21 @@ It seems we are ready to go! We will use the interactive shell quite a lot in th
4848
4949
## Running scripts
5050

51-
After getting familiar with the basics of the language you may want to try writing simple programs. This can be accomplished by putting Elixir code into a file and executing it with `elixir`:
51+
After getting familiar with the basics of the language you may want to try writing simple programs. This can be accomplished by putting the following Elixir code into a file:
5252

53-
```bash
54-
$ cat simple.exs
55-
IO.puts "Hello world
56-
from Elixir"
53+
```elixir
54+
IO.puts "Hello world from Elixir"
55+
56+
```
5757

58+
Save it as `simple.exs` and execute it with `elixir`:
59+
60+
```bash
5861
$ elixir simple.exs
59-
Hello world
60-
from Elixir
62+
Hello world from Elixir
6163
```
6264

65+
6366
Later on we will learn how to compile Elixir code (in [Chapter 8](/getting-started/modules.html)) and how to use the Mix build tool (in the [Mix & OTP guide](/getting-started/mix-otp/introduction-to-mix.html)). For now, let's move on to [Chapter 2](/getting-started/basic-types.html).
6467

6568
## Asking questions

0 commit comments

Comments
 (0)