Skip to content

Commit feb76c0

Browse files
committed
Fixed DjangoGirls#110 -- more interactive command line chapter
1 parent c1aef06 commit feb76c0

2 files changed

Lines changed: 23 additions & 23 deletions

File tree

intro_to_command_line/README.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# Introduction to command-line interface
1+
# Introduction to the command-line interface
22

33
Huh, it's exciting, right?! You'll write your first line of code in just a few minutes :)
44

5-
__Let us first introduce you to your first new friend: the command line!__
5+
__Let us introduce you to your first new friend: the command line!__
66

77
The following steps will show you how to use the black window all hackers use. It might look a bit scary at first but really it's just a prompt waiting for commands from you.
88

9-
## What is a command line?
9+
## What is the command line?
1010

1111
The window, which is usually called the __command line__ or __command-line interface__, is a text-based application for viewing, handling and manipulating files on your computer (much like e.g. Windows Explorer or Finder on Mac, but without the graphical interface). Other names for the command line are: *cmd*, *CLI*, *prompt*, *console* or *terminal*.
1212

@@ -57,7 +57,7 @@ And then hit Enter. This is our result:
5757
$ whoami
5858
olasitarska
5959

60-
As you can see, computer just presented you your username. Neat, huh?:)
60+
As you can see, the computer just presented you your username. Neat, huh?:)
6161

6262
> Try to type each command, do not copy paste. You'll remember more this way!
6363
@@ -77,7 +77,7 @@ If you're on Windows:
7777
> cd
7878
C:\Users\olasitarska
7979

80-
You'll probably see something similiar on your machine. Once you open command line you usually start at your user's home directory.
80+
You'll probably see something similiar on your machine. Once you open the command line you usually start at your user's home directory.
8181

8282
---
8383

@@ -126,23 +126,23 @@ Windows:
126126

127127
Here it is!
128128

129-
> PRO tip: if you type `cd D` and then hit `tab` on your keyboard, command line will automatically autofill the rest of the name so you can navigate faster. If there is more than one folder starting with "D", hit `tab` button twice to get a list of options.
129+
> PRO tip: if you type `cd D` and then hit `tab` on your keyboard, the command line will automatically autofill the rest of the name so you can navigate faster. If there is more than one folder starting with "D", hit the `tab` button twice to get a list of options.
130130
131131
---
132132

133133
### Create directory
134134

135-
How about creating Django Girls directory on your desktop? You can do it this way:
135+
How about creating a Django Girls directory on your desktop? You can do it this way:
136136

137137
$ mkdir djangogirls
138138

139139
Windows:
140140

141141
> mkdir djangogirls
142142

143-
This little command will create a folder with name `djangogirls` on your desktop. You can check if it's there just by looking on your Desktop or by running a `ls`/`dir` command! Try it :)
143+
This little command will create a folder with the name `djangogirls` on your desktop. You can check if it's there just by looking on your Desktop or by running a `ls`/`dir` command! Try it :)
144144

145-
> PRO tip: If you don't want to type the same commands over and over, try clicking `up arrow` and `down arrow` on your keyboard to cycle through recently used commands.
145+
> PRO tip: If you don't want to type the same commands over and over, try pressing the `up arrow` and `down arrow` on your keyboard to cycle through recently used commands.
146146
147147
---
148148

@@ -180,7 +180,7 @@ Windows:
180180

181181
> cd ..
182182

183-
Making `cd` to `..` will change your current directory to the parent directory (which means directory that contain your current directory).
183+
Making `cd` to `..` will change your current directory to the parent directory (which means the directory that contain your current directory).
184184

185185
Check where you are:
186186

@@ -192,7 +192,7 @@ Windows:
192192
> cd
193193
C:\Users\olasitarska\Desktop
194194

195-
Now time to delete `djangogirls` directory:
195+
Now time to delete the `djangogirls` directory:
196196

197197
$ rm -r djangogirls
198198

@@ -209,7 +209,7 @@ Windows:
209209

210210
> dir
211211

212-
> __Attention__: eleting files using `del`, `rmdir` or `rm` is irrecoverable, meaning _deleted files will be gone forever_! So, be very careful with this command.
212+
> __Attention__: Deleting files using `del`, `rmdir` or `rm` is irrecoverable, meaning _deleted files will be gone forever_! So, be very careful with this command.
213213
214214
### Exit
215215

@@ -227,15 +227,15 @@ Cool, huh?:)
227227

228228
Here is a summary of some useful commands:
229229

230-
| Command (Windows) | Command (Mac OS / Linux) | Description | Example|
231-
| ------------- |-----------|-------------| -----|
232-
| exit | exit | close the window | **exit** |
233-
| cd | cd | change directory | **cd test** |
234-
| dir | ls |list directories/files | **dir** |
235-
| copy | cp | copy file | **copy c:\test\test.txt c:\windows\test.txt** |
236-
| move | mv | move file | **move c:\test\test.txt c:\windows\test.txt** |
237-
| mkdir | mkdir | create a new directory | **mkdir testdirectory** |
238-
|del | rm | delete a directory/file | **del c:\test\test.txt**
230+
| Command (Windows) | Command (Mac OS / Linux) | Description | Example |
231+
| ----------------- | ------------------------ | ----------------------- | --------------------------------------------- |
232+
| exit | exit | close the window | **exit** |
233+
| cd | cd | change directory | **cd test** |
234+
| dir | ls | list directories/files | **dir** |
235+
| copy | cp | copy file | **copy c:\test\test.txt c:\windows\test.txt** |
236+
| move | mv | move file | **move c:\test\test.txt c:\windows\test.txt** |
237+
| mkdir | mkdir | create a new directory | **mkdir testdirectory** |
238+
|del | rm | delete a directory/file | **del c:\test\test.txt** |
239239

240240
These are just a very few of the commands you can run in your command line but you're not going to use anything more than that today.
241241

python_introduction/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ Let's write some code!
66

77
## Python prompt
88

9-
To start playing with Python, we need to open up a *command line* on your computer. You should have already knew how to do that -- you have learned that in [Intro to Command Line](/intro_to_command_line/README.html) chapter.
9+
To start playing with Python, we need to open up a *command line* on your computer. You should have already knew how to do that -- you have learned it in the [Intro to Command Line](/intro_to_command_line/README.html) chapter.
1010

11-
Once you're ready, follow instructions below.
11+
Once you're ready, follow the instructions below.
1212

1313
We want to open up a Python console, so type in `python3` and hit Enter.
1414

0 commit comments

Comments
 (0)