Skip to content

Commit 019abeb

Browse files
authored
Merge pull request #1876 from hjwp/add-commandline-prompt-to-install-instructions
Include/duplicate commandline prompt explanation in installation section
2 parents 042d5a2 + 2cf2dc0 commit 019abeb

File tree

3 files changed

+43
-31
lines changed

3 files changed

+43
-31
lines changed

en/installation/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,17 @@ To install software on your machine, follow the instructions below:
3333

3434
## Brief intro to the command line {#intro-command-line}
3535
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:
36+
3637
{% include "/intro_to_command_line/open_instructions.md" %}
3738

39+
### The Command-line Prompt
40+
41+
Now you know how to open a command line,
42+
we just need to understand what the "prompt" is.
43+
44+
{% include "/intro_to_command_line/prompt.md" %}
45+
46+
3847
## Install Python {#python}
3948
{% include "/python_installation/instructions.md" %}
4049

en/intro_to_command_line/README.md

Lines changed: 2 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -20,42 +20,13 @@ To start some experiments we need to open our command-line interface first.
2020

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

23-
## Prompt
24-
2523
You now should see a white or black window that is waiting for your commands.
2624

27-
<!--sec data-title="Prompt: macOS and Linux" data-id="OSX_Linux_prompt" data-collapse=true ces-->
28-
29-
30-
If you're on Mac or Linux, you probably see a `$`, like this:
31-
32-
{% filename %}command-line{% endfilename %}
33-
```
34-
$
35-
```
36-
<!--endsec-->
37-
38-
<!--sec data-title="Prompt: Windows" data-id="windows_prompt2" data-collapse=true ces-->
39-
40-
41-
On Windows, you probably see a `>`, like this:
42-
43-
{% filename %}command-line{% endfilename %}
44-
```
45-
>
46-
```
47-
48-
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.
49-
50-
<!--endsec-->
51-
52-
Each command will be prepended by a `$` or `>` and one space, but you should not type it. Your computer will do it for you. :)
25+
### The command-line Prompt
5326

54-
> 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.
27+
{% include "/intro_to_command_line/prompt.md" %}
5528

56-
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.
5729

58-
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.
5930

6031
## Your first command (YAY!)
6132

en/intro_to_command_line/prompt.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<!--sec data-title="Prompt: macOS and Linux" data-id="OSX_Linux_prompt" data-collapse=true ces-->
2+
3+
4+
If you're on Mac or Linux, you probably see a `$`, like this:
5+
6+
{% filename %}command-line{% endfilename %}
7+
```
8+
$
9+
```
10+
<!--endsec-->
11+
12+
<!--sec data-title="Prompt: Windows" data-id="windows_prompt2" data-collapse=true ces-->
13+
14+
15+
On Windows, you probably see a `>`, like this:
16+
17+
{% filename %}command-line{% endfilename %}
18+
```
19+
>
20+
```
21+
22+
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.
23+
24+
<!--endsec-->
25+
26+
Each command will be prepended by a `$` or `>` and one space, but you should not type it. Your computer will do it for you. :)
27+
28+
> 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.
29+
30+
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.
31+
32+
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.

0 commit comments

Comments
 (0)