Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions en/installation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,17 @@ To install software on your machine, follow the instructions below:

## Brief intro to the command line {#intro-command-line}
Many of the steps below reference the "console", "terminal", "command window", or "command line" -- these all mean the same thing: a window on your computer where you can enter commands. When you get to the main tutorial, you'll learn more about the command line. For now, the main thing you need to know is how to open a command window and what it looks like:

{% include "/intro_to_command_line/open_instructions.md" %}

### The Command-line Prompt

Now you know how to open a command line,
we just need to understand what the "prompt" is.

{% include "/intro_to_command_line/prompt.md" %}


## Install Python {#python}
{% include "/python_installation/instructions.md" %}

Expand Down
33 changes: 2 additions & 31 deletions en/intro_to_command_line/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,42 +20,13 @@ To start some experiments we need to open our command-line interface first.

{% include "/intro_to_command_line/open_instructions.md" %}

## Prompt

You now should see a white or black window that is waiting for your commands.

<!--sec data-title="Prompt: macOS and Linux" data-id="OSX_Linux_prompt" data-collapse=true ces-->


If you're on Mac or Linux, you probably see a `$`, like this:

{% filename %}command-line{% endfilename %}
```
$
```
<!--endsec-->

<!--sec data-title="Prompt: Windows" data-id="windows_prompt2" data-collapse=true ces-->


On Windows, you probably see a `>`, like this:

{% filename %}command-line{% endfilename %}
```
>
```

Take a look at the Linux section just above now -- you'll see something more like that when you get to PythonAnywhere later in the tutorial.

<!--endsec-->

Each command will be prepended by a `$` or `>` and one space, but you should not type it. Your computer will do it for you. :)
### The command-line Prompt

> Just a small note: in your case there may be something like `C:\Users\ola>` or `Olas-MacBook-Air:~ ola$` before the prompt sign, and this is 100% OK.
{% include "/intro_to_command_line/prompt.md" %}

The part up to and including the `$` or the `>` is called the *command line prompt*, or *prompt* for short. It prompts you to input something there.

In the tutorial, when we want you to type in a command, we will include the `$` or `>`, and occasionally more to the left. Ignore the left part and only type in the command, which starts after the prompt.

## Your first command (YAY!)

Expand Down
46 changes: 46 additions & 0 deletions en/intro_to_command_line/prompt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<!--sec data-title="Prompt: Windows" data-id="windows_prompt2" data-collapse=true ces-->

On Windows, you probably see a `>`, like this:

{% filename %}command-line{% endfilename %}
```
>
```

<!--sec data-title="Prompt: MacOS" data-id="OSX_prompt" data-collapse=true ces-->


If you're on Mac, you probably see a `%`, like this:

{% filename %}command-line{% endfilename %}
```
%
```
<!--endsec-->

<!--sec data-title="Prompt: Linux" data-id="Linux_prompt" data-collapse=true ces-->


If you're on Linux, you probably see a `$`, like this:

{% filename %}command-line{% endfilename %}
```
$
```
<!--endsec-->

Take a look at the Linux section just above now -- you'll see something more like that when you get to PythonAnywhere later in the tutorial.

<!--endsec-->

Each command will be prepended by a `$` or `>` or `%` and one space, but you should not type it. Your computer will do it for you. :)

> Just a small note: in your case there may be something like
> `C:\Users\ola>`
> or `Olas-MacBook-Air %`
> or `ola@mylaptop:$`
> before the prompt sign, and this is 100% OK.

The part up to and including the `$` or the `>` is called the *command line prompt*, or *prompt* for short. It prompts you to input something there.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should % be mentioned here, too?

Suggested change
The part up to and including the `$` or the `>` is called the *command line prompt*, or *prompt* for short. It prompts you to input something there.
The part up to and including the `$`, the `>` or the `%` is called the *command line prompt*, or *prompt* for short. It prompts you to input something there.


In the tutorial, when we want you to type in a command, we will include the `$` or `>`, and occasionally more to the left. Ignore the left part and only type in the command, which starts after the prompt.