1
00:00:02,090 --> 00:00:04,700
In this lecture, we'll learn the basics

2
00:00:04,700 --> 00:00:07,890
about the Matco S command line

3
00:00:07,890 --> 00:00:10,990
interface, specifically the terminal.

4
00:00:10,990 --> 00:00:14,136
So how can we interact with our Mac computer,

5
00:00:14,136 --> 00:00:16,770
with the command line?

6
00:00:16,770 --> 00:00:18,380
For this the first thing we'll do

7
00:00:18,380 --> 00:00:21,820
is we'll bring up the command line interface

8
00:00:21,820 --> 00:00:23,690
Mac computers ship with.

9
00:00:23,690 --> 00:00:26,900
And this is the so-called terminal.

10
00:00:26,900 --> 00:00:28,460
To open the terminal,

11
00:00:28,460 --> 00:00:31,195
as basically for any program on Mac computers,

12
00:00:31,195 --> 00:00:35,240
we can simply open the spotlight search with command and

13
00:00:35,240 --> 00:00:38,623
space and there search for terminal.

14
00:00:39,980 --> 00:00:43,180
With enter we can then open a new terminal window

15
00:00:44,410 --> 00:00:45,590
Like this here.

16
00:00:45,590 --> 00:00:49,730
And I'll use command plus to zoom in a bit to make it better

17
00:00:49,730 --> 00:00:53,760
readable for you and maybe put it right here.

18
00:00:53,760 --> 00:00:56,960
Now, before we dive deeper, one quick note.

19
00:00:56,960 --> 00:01:00,160
As you saw, we just opened the terminal,

20
00:01:00,160 --> 00:01:04,220
which is the command line interface, the Mac offers.

21
00:01:04,220 --> 00:01:08,263
But you can also find this zat sh word up here.

22
00:01:09,270 --> 00:01:12,730
Once the terminal is so to say the hardware.

23
00:01:12,730 --> 00:01:14,860
So basically this thing here,

24
00:01:14,860 --> 00:01:18,830
which allows us to run the commands in the end.

25
00:01:18,830 --> 00:01:20,750
The zat sh, the zat shell

26
00:01:20,750 --> 00:01:24,100
is the software inside the terminal.

27
00:01:24,100 --> 00:01:26,260
That's basically how you can remember this.

28
00:01:26,260 --> 00:01:29,550
So you open a terminal and the terminal runs the zat shell

29
00:01:29,550 --> 00:01:33,180
software to then execute the commands we enter.

30
00:01:33,180 --> 00:01:35,220
I don't want to dive too deep here

31
00:01:35,220 --> 00:01:36,620
as it's not important

32
00:01:36,620 --> 00:01:38,330
for the purpose of this course.

33
00:01:38,330 --> 00:01:40,690
But if you select the terminal window,

34
00:01:40,690 --> 00:01:44,100
you can see the terminal up here and the shell over there.

35
00:01:44,100 --> 00:01:47,220
Therefore the differentiation between terminal and shell is

36
00:01:47,220 --> 00:01:49,140
something you might come across.

37
00:01:49,140 --> 00:01:50,973
Therefore, I wanted to mention this.

38
00:01:52,020 --> 00:01:53,900
Talking about this menu options.

39
00:01:53,900 --> 00:01:56,410
If you click onto the shell, you can see

40
00:01:56,410 --> 00:01:59,260
that you have multiple options in here.

41
00:01:59,260 --> 00:02:00,351
One interesting option is

42
00:02:00,351 --> 00:02:03,260
while the option to open a new shell

43
00:02:03,260 --> 00:02:04,710
or a new terminal window,

44
00:02:04,710 --> 00:02:06,900
I use both interchangeably now.

45
00:02:06,900 --> 00:02:09,440
And in here you can either open a new window

46
00:02:09,440 --> 00:02:10,704
with the basic profile,

47
00:02:10,704 --> 00:02:13,070
which will be this white one here,

48
00:02:13,070 --> 00:02:15,377
or with any other default profiles

49
00:02:15,377 --> 00:02:18,140
the Mac computer here ships with.

50
00:02:18,140 --> 00:02:20,717
For example, if I select this Homebrew profile.

51
00:02:20,717 --> 00:02:22,345
You see, I have this well, black

52
00:02:22,345 --> 00:02:26,725
and green look doesn't change anything about the logic.

53
00:02:26,725 --> 00:02:29,040
As you see, it's still the zat shell.

54
00:02:29,040 --> 00:02:30,900
It just looks different.

55
00:02:30,900 --> 00:02:33,390
If you want to close the terminal window, you can,

56
00:02:33,390 --> 00:02:35,340
of course also go to the shell up here

57
00:02:35,340 --> 00:02:37,320
and select the window you want to close

58
00:02:37,320 --> 00:02:39,113
and then press close window.

59
00:02:40,259 --> 00:02:43,770
So with that, we opened this terminal.

60
00:02:43,770 --> 00:02:47,457
Now I also want to open a finder window to show you

61
00:02:47,457 --> 00:02:49,524
the contrast between the CLI

62
00:02:49,524 --> 00:02:53,075
and the GUI, the graphical user interface.

63
00:02:53,075 --> 00:02:56,360
So let's open a new finder window.

64
00:02:56,360 --> 00:02:57,640
Here we go.

65
00:02:57,640 --> 00:03:01,730
And I selected Academind's Mac mini option here

66
00:03:01,730 --> 00:03:03,060
on the locations.

67
00:03:03,060 --> 00:03:06,100
There you should also find your computer.

68
00:03:06,100 --> 00:03:09,788
If this is not the case, make sure to select the finder,

69
00:03:09,788 --> 00:03:13,423
go to define their option and there to preferences.

70
00:03:14,680 --> 00:03:18,270
There select the sidebar which I selected already.

71
00:03:18,270 --> 00:03:22,500
And there under locations make sure to select your computer.

72
00:03:22,500 --> 00:03:26,090
So tick this box next to your computer's name.

73
00:03:26,090 --> 00:03:27,830
Then you can close this window

74
00:03:27,830 --> 00:03:30,540
and then you should also find this option.

75
00:03:30,540 --> 00:03:32,380
It's important to have this option

76
00:03:32,380 --> 00:03:33,630
because if you selected,

77
00:03:33,630 --> 00:03:36,660
you should see something like I have right here.

78
00:03:36,660 --> 00:03:38,550
Maybe without the Scarlet option,

79
00:03:38,550 --> 00:03:41,267
but you should find your well Macintosh HD,

80
00:03:41,267 --> 00:03:43,193
and you can select this.

81
00:03:44,240 --> 00:03:49,240
Now we have on top the CLI, at the bottom, the GUI

82
00:03:49,460 --> 00:03:51,750
and whilst for the GUI,

83
00:03:51,750 --> 00:03:55,410
we see that we are inside this Macintosh HD folder now.

84
00:03:55,410 --> 00:03:58,380
I'll come back to this folder in a few minutes.

85
00:03:58,380 --> 00:04:02,513
We have no idea where we actually are in our CLI.

86
00:04:03,550 --> 00:04:06,630
Well, as its a command line interface.

87
00:04:06,630 --> 00:04:09,830
This means we run commands to tell our computer what we want

88
00:04:09,830 --> 00:04:12,010
to see or what we want to do.

89
00:04:12,010 --> 00:04:14,950
We can run our first command to see well,

90
00:04:14,950 --> 00:04:17,279
where we currently are.

91
00:04:17,279 --> 00:04:21,370
The command I want to run first is PWD.

92
00:04:21,370 --> 00:04:24,390
This stands for print working directory

93
00:04:24,390 --> 00:04:28,480
and tells the machine to well print where we currently are.

94
00:04:28,480 --> 00:04:31,070
So which path we currently follow

95
00:04:31,070 --> 00:04:32,920
on our machine.

96
00:04:32,920 --> 00:04:35,290
With enter we can confirm this command

97
00:04:36,500 --> 00:04:38,090
and you see that we are currently

98
00:04:38,090 --> 00:04:42,033
in slash users slash Manuel Lorenz.

99
00:04:42,890 --> 00:04:45,580
Now this doesn't help us too much, I guess,

100
00:04:45,580 --> 00:04:50,580
but if we go down to the GUI into this HD folder.

101
00:04:50,900 --> 00:04:54,900
Then we also have this user's folder, which we can select.

102
00:04:54,900 --> 00:04:57,270
And now this looks different on your machine,

103
00:04:57,270 --> 00:05:00,403
but you should find your user name right here.

104
00:05:00,403 --> 00:05:02,805
And if you click onto this user name,

105
00:05:02,805 --> 00:05:06,680
well, then my assumption would be that we are currently

106
00:05:06,680 --> 00:05:08,310
in the same folder.

107
00:05:08,310 --> 00:05:11,880
We are in slash users in the CLI

108
00:05:11,880 --> 00:05:14,610
and in the user's folder in the GUI.

109
00:05:15,940 --> 00:05:20,744
The problem is that in the CLI we cannot see the folders

110
00:05:20,744 --> 00:05:24,400
and the files, this folder contains.

111
00:05:24,400 --> 00:05:27,770
Now that's actually the next command we could run.

112
00:05:27,770 --> 00:05:29,670
So we could tell our computer, well,

113
00:05:29,670 --> 00:05:31,870
please show me what this folder,

114
00:05:31,870 --> 00:05:33,983
this user folder here contains.

115
00:05:35,040 --> 00:05:36,230
We have a command for this.

116
00:05:36,230 --> 00:05:41,230
And this command is LS. LS stands for list items.

117
00:05:41,480 --> 00:05:45,540
And this lists all folders and files inside the folder,

118
00:05:45,540 --> 00:05:47,073
where we currently are.

119
00:05:48,240 --> 00:05:49,270
This is the folder.

120
00:05:49,270 --> 00:05:52,720
With enter we can also execute this command.

121
00:05:52,720 --> 00:05:54,960
And if we take a close look,

122
00:05:54,960 --> 00:05:59,960
we can see that the folders we in our CLI are equal

123
00:06:00,110 --> 00:06:03,400
to bonds in our GUI at the bottom.

124
00:06:03,400 --> 00:06:06,760
And that's a very important takeaway already.

125
00:06:06,760 --> 00:06:11,180
The logic or the way we interact with our computer

126
00:06:11,180 --> 00:06:14,610
is the same for the CLI and the GUI.

127
00:06:14,610 --> 00:06:17,563
So for the computer the commands are basically the same.

128
00:06:18,992 --> 00:06:21,840
By clicking onto this user folder, I see the folders

129
00:06:21,840 --> 00:06:22,980
it contains.

130
00:06:22,980 --> 00:06:26,960
By entering LS, I see the files and folders it contains.

131
00:06:26,960 --> 00:06:28,410
So it's the same logic,

132
00:06:28,410 --> 00:06:31,330
but without the graphical user interface.

133
00:06:31,330 --> 00:06:34,860
Which allows us to have this, well, nice clicking feature.

134
00:06:34,860 --> 00:06:38,040
And also to get a nice overview of all the folders

135
00:06:38,040 --> 00:06:39,800
in the hierarchy and so on.

136
00:06:39,800 --> 00:06:41,270
But it doesn't make a difference

137
00:06:41,270 --> 00:06:43,260
from a system point of view.

138
00:06:43,260 --> 00:06:47,470
We can have the same access with the CLI that we get

139
00:06:47,470 --> 00:06:48,303
with the GUI.

140
00:06:50,170 --> 00:06:51,980
Talking about access.

141
00:06:51,980 --> 00:06:56,310
Let's come back to this Macintosh HD folder

142
00:06:56,310 --> 00:06:58,680
or option that we have right here.

143
00:06:58,680 --> 00:07:00,700
Because if we select it we see

144
00:07:00,700 --> 00:07:03,180
that we have different folders in here.

145
00:07:03,180 --> 00:07:06,120
And at least this applications library system

146
00:07:06,120 --> 00:07:09,043
and user's folders should be the same on your machine.

147
00:07:11,020 --> 00:07:16,020
This directory, this folder, is the so-called root directory

148
00:07:16,250 --> 00:07:17,770
of your computer.

149
00:07:17,770 --> 00:07:19,560
So it's the top level directory.

150
00:07:19,560 --> 00:07:22,520
So to say on your hardest drive.

151
00:07:22,520 --> 00:07:25,150
And if we look at the so-called (indistinct)

152
00:07:25,150 --> 00:07:26,150
that we had up here.

153
00:07:26,150 --> 00:07:29,530
So this slash users slash user thing.

154
00:07:29,530 --> 00:07:33,416
We see that the working directory printing logic

155
00:07:33,416 --> 00:07:37,120
always starts from this root directory.

156
00:07:37,120 --> 00:07:42,120
Because basically here we are in Macintosh HD slash users.

157
00:07:43,620 --> 00:07:45,133
And then so on Manuel Lorenz.

158
00:07:46,430 --> 00:07:50,460
We can also navigate to this root directory easily

159
00:07:50,460 --> 00:07:52,423
in our CLI at the top.

160
00:07:53,460 --> 00:07:57,023
We can simply enter CD for change directory.

161
00:07:58,210 --> 00:08:01,270
Now, a space, and now a slash.

162
00:08:01,270 --> 00:08:03,973
This brings us to this root directory.

163
00:08:05,203 --> 00:08:06,036
If we press enter.

164
00:08:07,070 --> 00:08:09,840
And you get the hint that we are in the root territory

165
00:08:09,840 --> 00:08:11,393
by this slash right here.

166
00:08:12,320 --> 00:08:15,750
And now I've been running PWD again, you see,

167
00:08:15,750 --> 00:08:17,150
we are in slash.

168
00:08:17,150 --> 00:08:20,033
This means we are in the root directory.

169
00:08:20,970 --> 00:08:25,870
I can prove this to you by again, running LS so list items.

170
00:08:25,870 --> 00:08:28,900
And there you see, besides some hidden folders,

171
00:08:28,900 --> 00:08:32,799
which are displayed in the CLI, but not in the GUI.

172
00:08:32,799 --> 00:08:36,150
We have the applications folder, the library folder,

173
00:08:36,150 --> 00:08:39,049
the system folder, and the users folder.

174
00:08:39,049 --> 00:08:41,289
Just as we have these folders down here

175
00:08:41,289 --> 00:08:43,813
in our graphical user interface.

176
00:08:44,770 --> 00:08:48,290
Besides this root directory or this root folder,

177
00:08:48,290 --> 00:08:51,250
we also have another very common directory,

178
00:08:51,250 --> 00:08:55,000
and this is the directory of the currently active user

179
00:08:55,000 --> 00:08:57,760
of this MacBook. In my case, myself.

180
00:08:57,760 --> 00:09:00,333
And that's the so-called home directory.

181
00:09:01,410 --> 00:09:05,350
The home directory for my username is this one here.

182
00:09:05,350 --> 00:09:07,023
So if I click onto my username,

183
00:09:08,045 --> 00:09:09,350
that's the directory you are navigated to

184
00:09:09,350 --> 00:09:12,320
by default when opening the terminal.

185
00:09:12,320 --> 00:09:14,630
And we also have a shortcut to navigate

186
00:09:14,630 --> 00:09:18,117
into this folder in the CLI.

187
00:09:18,117 --> 00:09:21,740
And here, the shortcut is simply CD.

188
00:09:21,740 --> 00:09:25,110
So change directory without any additions.

189
00:09:25,110 --> 00:09:27,870
If I do this, you'll see that we have

190
00:09:27,870 --> 00:09:29,540
this tilde symbol here.

191
00:09:29,540 --> 00:09:33,620
Which indicates that we are in the home directory.

192
00:09:33,620 --> 00:09:36,970
And (indistinct) again, type LS you'll see

193
00:09:36,970 --> 00:09:39,800
that we have all the folders that we see

194
00:09:39,800 --> 00:09:43,003
in the GUI also in our CLI.

195
00:09:45,260 --> 00:09:47,240
So these are some more basics,

196
00:09:47,240 --> 00:09:50,720
root directory and home directory to easy to understand

197
00:09:50,720 --> 00:09:52,593
where you are in the terminal.

198
00:09:53,810 --> 00:09:57,130
We also had a look at this CD command now.

199
00:09:57,130 --> 00:10:00,330
Now, besides navigating into the root directory

200
00:10:00,330 --> 00:10:02,440
or into the home directory.

201
00:10:02,440 --> 00:10:05,251
We can also navigate one level up

202
00:10:05,251 --> 00:10:09,440
by entering CD in the space. And now two dots.

203
00:10:09,440 --> 00:10:12,430
We can leave the home directory in our case,

204
00:10:12,430 --> 00:10:15,020
we are currently in this directory.

205
00:10:15,020 --> 00:10:20,020
And with that move up one level to slash users.

206
00:10:20,070 --> 00:10:21,533
Now we are in here.

207
00:10:22,700 --> 00:10:24,150
To make this better readable,

208
00:10:25,029 --> 00:10:27,830
by the way, we can also run clear like this.

209
00:10:27,830 --> 00:10:29,440
If you confirmed this, you see

210
00:10:29,440 --> 00:10:32,363
that all previous commands are no longer displayed,

211
00:10:33,440 --> 00:10:34,960
But you can scroll up

212
00:10:34,960 --> 00:10:37,363
and still see all the previous commands are there.

213
00:10:37,363 --> 00:10:39,813
It just clears the current view of your terminal.

214
00:10:41,368 --> 00:10:44,180
Now we've CD dot dot. We navigated one level up.

215
00:10:44,180 --> 00:10:45,660
If I print the directory,

216
00:10:45,660 --> 00:10:48,260
you'll see we are indeed in slash users.

217
00:10:48,260 --> 00:10:49,920
If I type L S again,

218
00:10:49,920 --> 00:10:52,170
you'll see that we have the same folders

219
00:10:52,170 --> 00:10:54,187
that we can see in the user's directory

220
00:10:54,187 --> 00:10:56,413
in the graphical user interface,

221
00:10:57,400 --> 00:10:59,600
Besides navigating to the root directory,

222
00:10:59,600 --> 00:11:03,180
the home directory, and navigating one level up.

223
00:11:03,180 --> 00:11:07,550
We can also use C D to navigate into a specific folder,

224
00:11:07,550 --> 00:11:10,650
starting from the current folder.

225
00:11:10,650 --> 00:11:13,990
This means, in my case, we are in the user's folder here.

226
00:11:13,990 --> 00:11:17,383
So I could enter M and now hit tab.

227
00:11:18,430 --> 00:11:20,299
And now I get the options we have.

228
00:11:20,299 --> 00:11:22,330
Now I see that I can either navigate

229
00:11:22,330 --> 00:11:25,733
into my user folder or max user folder.

230
00:11:26,580 --> 00:11:30,709
I use my folder. So I'll type an A now.

231
00:11:30,709 --> 00:11:33,100
Now, an A is unique in this folder structure.

232
00:11:33,100 --> 00:11:36,000
No other folders start with M A

233
00:11:36,000 --> 00:11:38,170
therefore, if I hit tab once again.

234
00:11:38,170 --> 00:11:40,133
I can confirm this with enter.

235
00:11:41,240 --> 00:11:44,363
And now I am back in my home directory.

236
00:11:46,100 --> 00:11:48,820
Now, inside this directory, I could see what I have

237
00:11:48,820 --> 00:11:50,421
in there.

238
00:11:50,421 --> 00:11:52,140
So we see we have plenty of folders.

239
00:11:52,140 --> 00:11:55,943
We could say we navigate into the documents folder now.

240
00:11:57,389 --> 00:12:00,940
So this one. Let's do this by entering C D once again.

241
00:12:00,940 --> 00:12:05,920
Now enter D O C because we also have two downloads folder.

242
00:12:05,920 --> 00:12:10,310
So D O C again, is the documents folder. And a tab.

243
00:12:10,310 --> 00:12:12,693
And now we are inside this document's folder.

244
00:12:13,660 --> 00:12:16,020
We could also add another folder.

245
00:12:16,020 --> 00:12:19,500
Like test here slash and so on to navigate

246
00:12:19,500 --> 00:12:20,653
into this folder too.

247
00:12:22,133 --> 00:12:23,576
We don't have such a folder here.

248
00:12:23,576 --> 00:12:25,940
Therefore, we'll just go into the documents folder.

249
00:12:25,940 --> 00:12:27,420
Let's do this.

250
00:12:27,420 --> 00:12:31,024
Now we see that we are currently in the documents folder.

251
00:12:31,024 --> 00:12:34,030
And there we could also list our items once again.

252
00:12:34,030 --> 00:12:36,780
And now we get a warning that our terminal would like

253
00:12:36,780 --> 00:12:38,640
to access this documents folder.

254
00:12:38,640 --> 00:12:40,700
So we can confirm this.

255
00:12:40,700 --> 00:12:42,810
Therefore we see in this folder, well,

256
00:12:42,810 --> 00:12:46,370
we only have one folder in one file at the moment.

257
00:12:46,370 --> 00:12:50,910
We can, again, also confirm this in our GUI.

258
00:12:50,910 --> 00:12:54,313
So many Lorenz documents, only this folder.

259
00:12:55,308 --> 00:12:57,710
So this is the navigation part.

260
00:12:57,710 --> 00:13:00,890
But as we don't have any files and folders,

261
00:13:00,890 --> 00:13:03,550
besides this adult folder, in my case.

262
00:13:03,550 --> 00:13:06,830
Why don't we add a new folder and then a new file

263
00:13:06,830 --> 00:13:09,143
inside of this folder as a next step.

264
00:13:10,040 --> 00:13:11,557
We could do this with the GUI.

265
00:13:12,835 --> 00:13:15,520
But it's also possible from the terminal.

266
00:13:15,520 --> 00:13:19,000
To create a new folder inside the current location,

267
00:13:19,000 --> 00:13:22,450
you can simply type M K D I R,

268
00:13:22,450 --> 00:13:24,623
make or create directory.

269
00:13:25,520 --> 00:13:28,320
What you then have to enter is the directory name.

270
00:13:28,320 --> 00:13:29,680
So we could call this

271
00:13:30,768 --> 00:13:35,768
WEB DEV minus course, maybe.

272
00:13:36,090 --> 00:13:39,970
And with this, you already see the confirmation in the GUI.

273
00:13:41,067 --> 00:13:42,860
We created this new folder.

274
00:13:42,860 --> 00:13:47,520
Now we can navigate into this folder with well CD.

275
00:13:47,520 --> 00:13:51,330
And now we type web, and now with tab we can complete it.

276
00:13:51,330 --> 00:13:52,790
Confirm it with enter.

277
00:13:52,790 --> 00:13:55,913
And now we are inside the WEB DEV course folder.

278
00:13:57,736 --> 00:14:00,699
Now let's add a file to this folder, maybe.

279
00:14:00,699 --> 00:14:02,221
And we also have a command for this.

280
00:14:02,221 --> 00:14:05,743
The other command is simply touch now a space.

281
00:14:06,704 --> 00:14:10,560
And now we add the file name, including the file extension.

282
00:14:10,560 --> 00:14:13,000
I would like to make things easier.

283
00:14:13,000 --> 00:14:18,000
So I would simply create a dummy dot text file.

284
00:14:19,600 --> 00:14:20,783
Let's run this command.

285
00:14:23,010 --> 00:14:26,700
And with L S now we should see

286
00:14:26,700 --> 00:14:29,700
that dummy dot text was created.

287
00:14:29,700 --> 00:14:31,840
And indeed it was.

288
00:14:31,840 --> 00:14:34,980
We can, again, confirm this in the WEB DEV course folder.

289
00:14:34,980 --> 00:14:36,423
There. we see this file.

290
00:14:38,020 --> 00:14:39,883
Let me now clear this once again.

291
00:14:41,803 --> 00:14:43,970
And besides creating folders and files, we can,

292
00:14:43,970 --> 00:14:47,080
of course also delete folders and files.

293
00:14:47,080 --> 00:14:50,750
A little warning here. This is just a quick introduction.

294
00:14:50,750 --> 00:14:54,473
Therefore, I will not dive too deep into this deletion part.

295
00:14:56,196 --> 00:14:58,623
But if you delete files or folders via the CLI,

296
00:14:59,930 --> 00:15:02,400
you have no trash or anything like this.

297
00:15:02,400 --> 00:15:06,170
So you barely have a chance to recover any deleted items.

298
00:15:06,170 --> 00:15:08,840
So you should be sure what you delete.

299
00:15:08,840 --> 00:15:10,943
Therefore, I'll show you the command,

300
00:15:11,917 --> 00:15:14,800
how you can delete files and empty folders.

301
00:15:14,800 --> 00:15:17,363
So in case the folder contains any files,

302
00:15:17,363 --> 00:15:18,760
the command I show you now

303
00:15:18,760 --> 00:15:21,480
for deleting the folder won't work.

304
00:15:21,480 --> 00:15:23,650
Let's first delete the file though.

305
00:15:23,650 --> 00:15:27,320
For this, I am still in the WEB DEV course folder.

306
00:15:27,320 --> 00:15:32,200
I now type R M for remove, then a space.

307
00:15:32,200 --> 00:15:35,400
And then I refer to the file I want to delete.

308
00:15:35,400 --> 00:15:38,320
So in my case, dummy dot tex.

309
00:15:38,320 --> 00:15:40,513
That's the file inside this folder.

310
00:15:41,380 --> 00:15:45,420
If we run this command, we don't get any confirmation

311
00:15:45,420 --> 00:15:47,210
that the deletion was successful.

312
00:15:47,210 --> 00:15:50,603
But in the GUI again, you see, well, the file is gone.

313
00:15:51,950 --> 00:15:54,270
If I would now create another file

314
00:15:55,860 --> 00:15:59,893
with touch test dot text, maybe.

315
00:16:02,848 --> 00:16:03,681
This would be here again.

316
00:16:04,851 --> 00:16:09,150
And now if you use CD space dot dot to move one level up

317
00:16:09,150 --> 00:16:10,913
in our folder hierarchy.

318
00:16:11,840 --> 00:16:14,900
Then I could also try to delete this folder.

319
00:16:14,900 --> 00:16:18,700
Deleting folders works also with the RM command.

320
00:16:18,700 --> 00:16:22,253
But here we use R M dir for directory.

321
00:16:23,200 --> 00:16:25,110
Now we can enter the name of the directory

322
00:16:25,110 --> 00:16:26,260
that we want to delete.

323
00:16:27,208 --> 00:16:29,131
So in our case, WEB DEV.

324
00:16:29,131 --> 00:16:30,543
With tab we can complete this.

325
00:16:32,010 --> 00:16:33,523
We don't need to slash though.

326
00:16:35,616 --> 00:16:39,230
And now if I run this, you see, this is not working.

327
00:16:39,230 --> 00:16:42,920
This is what I was mentioning a few seconds ago.

328
00:16:42,920 --> 00:16:44,480
For the purpose of this course,

329
00:16:44,480 --> 00:16:46,860
I will only show you this deletion commands

330
00:16:46,860 --> 00:16:49,380
to make sure you can't delete directories

331
00:16:49,380 --> 00:16:51,653
that contain any files or folders.

332
00:16:52,520 --> 00:16:54,480
Therefore right here we should navigate

333
00:16:54,480 --> 00:16:57,180
into the WEB DEV course folder

334
00:16:58,630 --> 00:17:01,390
with CD like this.

335
00:17:01,390 --> 00:17:06,390
Now run RM for remove test dot text and remove the file.

336
00:17:08,069 --> 00:17:13,069
Now again, use CD dot dot to move one level up.

337
00:17:13,579 --> 00:17:16,099
And now we can run RM dir.

338
00:17:16,099 --> 00:17:18,220
So to remove the directory

339
00:17:18,220 --> 00:17:21,210
and remove the WEB DEV course directory.

340
00:17:21,210 --> 00:17:23,430
Slash doesn't play a role here.

341
00:17:23,430 --> 00:17:25,400
If we do this now, you'll see

342
00:17:25,400 --> 00:17:28,373
in the GUI at the bottom that this was deleted.

343
00:17:29,210 --> 00:17:32,900
And this is actually more than you actually need to work

344
00:17:32,900 --> 00:17:35,850
with, get and get up from the terminal.

345
00:17:35,850 --> 00:17:39,640
Therefore we're done with the terminal introduction

346
00:17:39,640 --> 00:17:41,950
on Mac OS systems.

347
00:17:41,950 --> 00:17:46,040
If you also want to find out what the windows command prompt

348
00:17:46,040 --> 00:17:49,330
looks like, feel free to dive in to the next lecture.

349
00:17:49,330 --> 00:17:53,130
Otherwise please skip the following lecture and continue

350
00:17:53,130 --> 00:17:54,860
with the lecture afterwards,

351
00:17:54,860 --> 00:17:57,307
where we will finally dive into (indistinct).

