WEBVTT - This file was automatically generated by VIMEO

0
00:00:10.230 --> 00:00:11.600
Welcome to section seven.

1
00:00:11.980 --> 00:00:15.440
In this section you will learn about commonly used Linux and AWS commands.

2
00:00:15.790 --> 00:00:19.040
I've carefully chosen some commands that you will use the most while managing

3
00:00:19.040 --> 00:00:22.520
your Linux hosts in aws. In this video,

4
00:00:22.520 --> 00:00:25.960
you'll learn about 10 common Lennox commands that will allow you to explore and

5
00:00:25.960 --> 00:00:29.160
manage your Lennox host. Okay,

6
00:00:29.220 --> 00:00:33.560
so our plan is to go over these 10 commands and find out what you can use them

7
00:00:33.660 --> 00:00:34.220
for.

8
00:00:34.220 --> 00:00:38.080
You'll practice diving deep on these commands by using the man pages and help.

9
00:00:38.720 --> 00:00:42.060
You'll run each command and learn about common use cases for them.

10
00:00:43.790 --> 00:00:48.360
Okay, so there's clearly a lot of Lennox commands you could run on a host.

11
00:00:48.860 --> 00:00:53.480
So I've kind of chosen down cut, I have chosen cut.

12
00:00:53.950 --> 00:00:56.840
I've dwindled it down to about 10 commands that you use a lot.

13
00:00:57.660 --> 00:01:00.800
All these commands can be altered by using different arguments and should work

14
00:01:00.800 --> 00:01:02.440
across all distributions of Lennox.

15
00:01:02.920 --> 00:01:06.360
I won't go into a lot of detailed here about each command as we'll explore them

16
00:01:06.360 --> 00:01:10.720
later in the terminal. But here are the 10 commands. They are Ls,

17
00:01:11.300 --> 00:01:15.360
cp, cat, MV, control r, rm,

18
00:01:16.030 --> 00:01:20.330
find grip, tail and less. Okay,

19
00:01:20.540 --> 00:01:21.970
let's jump over the terminal and get started.

20
00:01:25.860 --> 00:01:29.430
Okay, so let's start off with the command. We've already been using Ls,

21
00:01:29.730 --> 00:01:31.550
but instead of just showing you the command again,

22
00:01:31.550 --> 00:01:33.110
which you've already done a few times,

23
00:01:33.390 --> 00:01:36.070
I wanna show you how you can learn more about a command by using the man page

24
00:01:36.070 --> 00:01:38.110
and help manual. So in your terminal,

25
00:01:38.360 --> 00:01:42.790
let's go ahead and type man Ls and let's jump into the man page.

26
00:01:43.560 --> 00:01:45.290
Okay, so here you can see, uh,

27
00:01:45.450 --> 00:01:49.410
the man page is divvied up by these different sections.

28
00:01:49.410 --> 00:01:53.410
You have the name synopsis, description, uh, et cetera. So we can hear,

29
00:01:53.410 --> 00:01:55.210
we could see LS list directories.

30
00:01:56.800 --> 00:02:00.100
You could see that we have a synopsis that kind of gives you how you can use the

31
00:02:00.100 --> 00:02:01.380
command. And then there's a description.

32
00:02:01.840 --> 00:02:04.260
And you could see we have all these flags here

33
00:02:05.890 --> 00:02:10.230
of different things you could do. You can print the author of the file heroes,

34
00:02:10.230 --> 00:02:14.070
like the dash dash author. You could do dash, dash color, um,

35
00:02:14.070 --> 00:02:16.590
which happens to be the default for us. Um,

36
00:02:16.590 --> 00:02:20.630
you can do just list directories by themselves, no contents. Um,

37
00:02:21.250 --> 00:02:23.350
but we're gonna focus in on a couple here,

38
00:02:23.510 --> 00:02:25.190
a couple flags that we were gonna want to do.

39
00:02:25.530 --> 00:02:29.030
So what we want to do is we wanna do the H for human readable.

40
00:02:29.050 --> 00:02:33.910
So we can see here in the man page the dash H or dash dash human dash readable,

41
00:02:34.320 --> 00:02:38.750
print the sizes in human readable format, example like bytes, uh,

42
00:02:38.780 --> 00:02:41.990
kilobytes, megabytes, uh, gig, uh, gigabytes, et cetera.

43
00:02:43.070 --> 00:02:44.170
And you can see that, uh,

44
00:02:44.170 --> 00:02:49.130
you have to h only works if it's using the dash L is

45
00:02:49.130 --> 00:02:51.970
with it as well. So we, we want to do that one.

46
00:02:52.190 --> 00:02:55.490
And then the other one we want to do, which is ignore. Um,

47
00:02:55.490 --> 00:02:57.130
and as you can see here, this ignore pattern,

48
00:02:57.400 --> 00:03:01.080
this is good if you do not wanna list, list implied entries inside the,

49
00:03:01.080 --> 00:03:03.480
so if you're listing a directory, but you wanna ignore one file,

50
00:03:03.780 --> 00:03:08.040
you can use this dash, dash ignore, or dash capital I, either one. Okay,

51
00:03:08.220 --> 00:03:09.120
so in the man page,

52
00:03:09.120 --> 00:03:11.920
it tells you right here at the bottom you can use Q for quit.

53
00:03:12.760 --> 00:03:15.660
So let's go ahead and get out of there. I am going to clear the screen.

54
00:03:18.850 --> 00:03:22.820
Okay, so let's test out the first flag, which was human readable.

55
00:03:22.820 --> 00:03:27.820
So we're gonna do dash L dash lh and we're gonna do it right

56
00:03:27.820 --> 00:03:29.900
here in the EC two users home directory.

57
00:03:31.550 --> 00:03:35.090
And you can see here that this GG SH five,

58
00:03:35.090 --> 00:03:36.490
if you remember from the earlier videos,

59
00:03:36.490 --> 00:03:39.000
this was the guessing game that we created. Um,

60
00:03:39.000 --> 00:03:43.900
it is 283 bites and that is all because of the H

61
00:03:44.010 --> 00:03:44.843
flag.

62
00:03:45.280 --> 00:03:49.460
And you can see the directory here of our campaign repos 217.

63
00:03:51.280 --> 00:03:54.330
Okay, so let's try the uh, dash H human readable first.

64
00:03:54.430 --> 00:03:59.020
So we're gonna use the dash h remember, we need to have the L in there as well.

65
00:04:00.060 --> 00:04:03.400
And we have the two files in our e c two user home directory.

66
00:04:03.780 --> 00:04:08.230
As you can see here, the gg, which is if you remember from uh,

67
00:04:08.390 --> 00:04:12.430
previous videos, is the guessing game. And it is 283 bites.

68
00:04:12.430 --> 00:04:16.400
And you can see our companion directory. Here's two 17. Um,

69
00:04:16.400 --> 00:04:19.720
so that just gives you a size, which is nice if you're looking at stuff on this.

70
00:04:20.500 --> 00:04:23.920
Now, let's say we want to do what we just did,

71
00:04:24.620 --> 00:04:27.300
but this time we want to,

72
00:04:28.250 --> 00:04:32.270
we want to ignore the GG fox. We, we don't, we don't really care about it.

73
00:04:32.770 --> 00:04:36.150
So you, what you could do is you could do the dash, dash ignore equals,

74
00:04:36.170 --> 00:04:37.710
and then what you want to ignore.

75
00:04:37.710 --> 00:04:41.750
This could be a pattern or it could be the actual name of the file.

76
00:04:41.750 --> 00:04:45.630
And in this case we wanna do the name of the file as you see when we now do an

77
00:04:45.810 --> 00:04:46.050
ls.

78
00:04:46.050 --> 00:04:49.870
And here I'll hit the up arrow one more time and then we're gonna do a dash l

79
00:04:49.870 --> 00:04:51.990
here as well. So you get the long looks similar.

80
00:04:52.690 --> 00:04:57.360
You could see that we are not seeing the the guessing

81
00:04:57.560 --> 00:05:00.370
game file. Okay, lemme clear the screen.

82
00:05:00.470 --> 00:05:04.650
The other thing that we want to do is I wanna show you that each command, most,

83
00:05:04.800 --> 00:05:09.530
most all Lennox commands are gonna have a help, um, style menu.

84
00:05:09.760 --> 00:05:14.330
Some may be dash h, some may be dash, dash help. You'll have to explore. Um,

85
00:05:14.330 --> 00:05:18.520
they're not all consistent, but we see here we did Dashs, lh,

86
00:05:18.980 --> 00:05:22.210
let me see how scroll up here. Uh, Dashs help.

87
00:05:22.210 --> 00:05:24.650
You can see it prints a lot of what the, uh,

88
00:05:24.650 --> 00:05:28.330
description was inside the man page. And it gives us these,

89
00:05:29.260 --> 00:05:33.680
the flags and the other things, the arguments we can pass to the L ls. Um,

90
00:05:33.680 --> 00:05:36.600
so you could use either one. If you wanna learn more,

91
00:05:36.790 --> 00:05:40.680
more in depth about a command or something, I would use the man page.

92
00:05:40.680 --> 00:05:44.960
If you just need a quick like, oh, I forget what that flag is to ignore files,

93
00:05:45.380 --> 00:05:48.000
you could use the dash dash help and you don't have to go through as much.

94
00:05:48.910 --> 00:05:52.050
All right, let me clear the screen. Let's move on to the next command.

95
00:05:53.590 --> 00:05:55.530
And that next command is cp.

96
00:05:55.790 --> 00:05:59.480
So the CP command copies files and directories as you already know.

97
00:06:00.060 --> 00:06:04.480
But there are a few flags you can use to expand on CCPs usability. Um,

98
00:06:04.480 --> 00:06:08.080
you can copy directory in its contents from one place to another while

99
00:06:08.080 --> 00:06:09.120
preserving permissions,

100
00:06:09.120 --> 00:06:12.480
which is important because if you're copying files from your,

101
00:06:12.950 --> 00:06:16.440
that you created and you want, you're copying to a shared directory.

102
00:06:16.980 --> 00:06:20.520
If you don't use the preserve, whatever that directory's uh,

103
00:06:20.520 --> 00:06:24.680
ownership model may be, it may inherit if you're doing using it pseudo,

104
00:06:24.680 --> 00:06:25.960
it may inherit those permissions.

105
00:06:26.070 --> 00:06:28.960
Instead of preserving what you have on these files,

106
00:06:30.020 --> 00:06:32.000
you can also copy, uh,

107
00:06:32.160 --> 00:06:36.680
a directory in all its contents to another destination target.

108
00:06:37.340 --> 00:06:42.300
So what we're gonna do here is, um, I'm gonna use the CP dash dash help command

109
00:06:44.260 --> 00:06:48.730
if I can spell it right. And as you can see here, so we're getting a lot,

110
00:06:50.280 --> 00:06:52.310
we're getting a lot what we would see in the man page.

111
00:06:53.730 --> 00:06:56.990
One thing we're gonna focus on is here, we're gonna use the dash r.

112
00:06:57.490 --> 00:07:00.030
And this case is gonna be copy directives recursively,

113
00:07:00.030 --> 00:07:03.950
because we want copy to actually go inside a directory and copy all the contents

114
00:07:03.950 --> 00:07:06.670
of the director as well as the directory. So we need a dash R there,

115
00:07:07.430 --> 00:07:11.090
we have here, which is the dash P is preserved the attributes,

116
00:07:11.090 --> 00:07:15.730
mode ownership timestamped if possible. So that is what talking about, um,

117
00:07:15.730 --> 00:07:16.563
earlier.

118
00:07:17.050 --> 00:07:20.870
And then the V we're gonna do is verbose so you can see exactly what it's doing.

119
00:07:21.050 --> 00:07:23.950
Now a lot of stuff's gonna run by the screen, um, but that's okay.

120
00:07:24.410 --> 00:07:28.390
So one thing that we we're, we're gonna want to do here is if you re,

121
00:07:28.410 --> 00:07:29.990
if you recall here, I'll do an ls.

122
00:07:29.990 --> 00:07:32.030
You can see that we have that our companion repository.

123
00:07:32.920 --> 00:07:35.630
Let's go ahead and make a backup of this.

124
00:07:35.970 --> 00:07:40.950
And so what we can do is we can say CP dash RVP for recursive

125
00:07:41.020 --> 00:07:45.830
verbose and keep the permissions if possible. And then we're gonna do,

126
00:07:45.940 --> 00:07:50.570
instead of calling that, we're gonna say backup.

127
00:07:51.070 --> 00:07:55.970
So what this command says is we're gonna copy the original companion repository,

128
00:07:56.070 --> 00:07:58.250
the hands-on Lennox for DevOps cloud engineers,

129
00:07:58.550 --> 00:08:02.650
and we're gonna put it in another directory named Hands-on Lennox for DevOps

130
00:08:02.740 --> 00:08:05.570
Cloud Engineers backup, which does not exist yet.

131
00:08:06.340 --> 00:08:09.400
So I'm gonna hit return. A lot's gonna go by the screen,

132
00:08:09.660 --> 00:08:14.120
but let's go ahead and do that. So as you can see with the v with the verbose,

133
00:08:14.820 --> 00:08:19.490
it basically tells you that I'm copying this file from the

134
00:08:19.810 --> 00:08:23.790
original source into the new destination.

135
00:08:23.810 --> 00:08:25.550
You can see this one as the backup directory.

136
00:08:25.810 --> 00:08:27.310
So let me clear the screen really quick.

137
00:08:27.410 --> 00:08:30.260
So if you're not sure about clear screen,

138
00:08:30.440 --> 00:08:32.820
you can just do control L as a shortcut.

139
00:08:34.350 --> 00:08:35.890
And let's go ahead and do an ls.

140
00:08:35.890 --> 00:08:38.170
And as you can see now we have both directories,

141
00:08:38.420 --> 00:08:42.790
one's an exact copy of the other. Okay,

142
00:08:42.890 --> 00:08:47.830
so the other flag that's interesting about CP that we can use is the dash I or

143
00:08:47.830 --> 00:08:48.710
Interactive Flag.

144
00:08:48.710 --> 00:08:53.070
And a lot of other file directory manipulating commands all have this

145
00:08:53.070 --> 00:08:57.490
interactive and it allows you to like prompt you when you're doing something,

146
00:08:57.680 --> 00:09:01.530
protect you from overriding stuff. For example, we see here we had the,

147
00:09:01.550 --> 00:09:03.930
we saw the guessing game file. Let's do,

148
00:09:04.760 --> 00:09:07.910
we're gonna do dash IgG sh,

149
00:09:07.910 --> 00:09:12.590
and then let's just for the lack of creativity, let's just call it GG two sh,

150
00:09:13.100 --> 00:09:17.470
okay, nothing happened, right? And that is because we'll not do ls.

151
00:09:17.620 --> 00:09:21.470
That is because the GG two file did not, um, exist before.

152
00:09:21.490 --> 00:09:25.390
So there's no reason for copy CP to actually prompt us.

153
00:09:25.390 --> 00:09:29.470
Do you sure you wanna overwrite this file? And, and that is cuz it didn't exist,

154
00:09:29.470 --> 00:09:30.350
which makes sense. So,

155
00:09:30.350 --> 00:09:35.310
but if I clear the screen control L and I hit the up arrow till I

156
00:09:35.310 --> 00:09:40.270
get to the CP dash I Gigi, and if I do this again, watch what happened.

157
00:09:42.390 --> 00:09:43.470
CP now asked me like,

158
00:09:43.470 --> 00:09:46.670
do you want to overwrite this file again because we're gonna copy it again.

159
00:09:46.670 --> 00:09:49.590
Now of course these files are both the same, so it's not that big of a deal.

160
00:09:49.770 --> 00:09:53.950
But now you could do the dash y and it's yes, and if we look,

161
00:09:53.950 --> 00:09:57.630
everything is still there. So this is a, a good use case here.

162
00:09:57.690 --> 00:09:59.990
If you want to copy files and you want to be safe,

163
00:10:00.340 --> 00:10:03.550
even though it's a little bit, uh, it has to prompt you for it.

164
00:10:03.770 --> 00:10:06.550
But this way you can be make sure that you're not overriding something you

165
00:10:06.550 --> 00:10:10.450
shouldn't. Alright, lemme clear the screen. All right,

166
00:10:10.450 --> 00:10:15.110
let's move on to the next command. So the third command is the cat command, um,

167
00:10:15.110 --> 00:10:17.270
which you've already used and as you remember,

168
00:10:17.330 --> 00:10:19.270
it can kanate files to stand it out.

169
00:10:19.610 --> 00:10:22.590
But there are a couple of nice flags you can use to make it a bit more useful.

170
00:10:23.330 --> 00:10:27.070
For example, if we do man dash cat, our man space cat,

171
00:10:27.610 --> 00:10:30.990
one of the ones that I like to do is the dash N here on the description.

172
00:10:31.010 --> 00:10:34.770
You can see right here and I'll, I'll just bring it up right here.

173
00:10:34.830 --> 00:10:37.650
The dash N is the number all the output lines,

174
00:10:37.650 --> 00:10:39.650
which I think is actually really helpful.

175
00:10:40.030 --> 00:10:43.090
So if you're reading a big line and you're sharing it or you're trying to figure

176
00:10:43.090 --> 00:10:45.490
out, uh, where something is on the line number, you could do that.

177
00:10:46.070 --> 00:10:47.810
So let's go ahead and then we're,

178
00:10:47.810 --> 00:10:52.130
we're gonna do is we're gonna do a dash n we're gonna use the cat command dash n

179
00:10:52.270 --> 00:10:56.290
and then let's just look at the gg sh file the guessing game file again.

180
00:10:58.170 --> 00:11:00.660
Okay. And as you see here, when you cat it with the dash n,

181
00:11:00.660 --> 00:11:03.700
you can see now each of these uh, lines are numbered.

182
00:11:03.750 --> 00:11:06.380
Makes it a little bit cleaner when you're talking, uh, about things.

183
00:11:07.040 --> 00:11:10.900
The other thing that's really interesting about Cat as well is you can actually

184
00:11:11.000 --> 00:11:15.580
cat two files at once. So if we do gg sh,

185
00:11:16.320 --> 00:11:18.460
and then let's just pick, oh,

186
00:11:19.590 --> 00:11:24.070
let's just pick the Readme that's in the, the companion repository.

187
00:11:26.440 --> 00:11:27.340
You could see now

188
00:11:29.290 --> 00:11:34.270
the guessing game file was catted first and it ends right here at the exit

189
00:11:34.270 --> 00:11:35.670
zero. Okay,

190
00:11:35.690 --> 00:11:39.670
so let's just cat the guessing game file from here and then let's,

191
00:11:41.240 --> 00:11:41.900
oh, I don't know,

192
00:11:41.900 --> 00:11:46.430
let's pick something in section four and let's do the file and directory

193
00:11:46.460 --> 00:11:49.310
ownership owner permissions text. What this basically does,

194
00:11:49.310 --> 00:11:53.440
it just shows you what each of the uh, when you do an LS um,

195
00:11:54.120 --> 00:11:56.920
al and you're looking at the file directory owner permission,

196
00:11:56.950 --> 00:12:00.160
this basically just gives you what each column represents. So as you see,

197
00:12:00.160 --> 00:12:01.000
we're gonna print out,

198
00:12:01.010 --> 00:12:04.080
we're gonna concatenate both these files out to the screen.

199
00:12:05.820 --> 00:12:10.680
Okay? So what you can see here, okay,

200
00:12:10.680 --> 00:12:14.830
so what you can see here is the first file ends at exit zero,

201
00:12:15.030 --> 00:12:16.110
which is our guessing game.

202
00:12:16.650 --> 00:12:19.990
And then the output of the second file is right below it.

203
00:12:21.440 --> 00:12:24.940
So obviously very helpful if you're looking at two files and you're trying to

204
00:12:24.940 --> 00:12:28.580
get information from both of them, you could cat it out, um,

205
00:12:28.640 --> 00:12:31.340
and also you could add the line numbers here to get you both best of both

206
00:12:31.340 --> 00:12:35.340
worlds. Okay, let me clear the screen and let's move on to number four.

207
00:12:37.080 --> 00:12:40.460
The number four command is mv, which you've already used.

208
00:12:40.960 --> 00:12:44.980
But one interesting feature you could do when using the move command is to use a

209
00:12:45.090 --> 00:12:46.500
dash dash backup flag.

210
00:12:47.080 --> 00:12:49.700
And this will create a backup of the destination targeted.

211
00:12:49.700 --> 00:12:51.500
Cuz remember when you move a file,

212
00:12:51.500 --> 00:12:56.500
whether you're copy is basically taking one file and renaming it to

213
00:12:56.500 --> 00:13:00.020
another, but you're taking the contents with the two. So if that other file,

214
00:13:00.040 --> 00:13:03.380
the destination or target file exists, you're basically overriding it.

215
00:13:03.600 --> 00:13:06.460
So this is a nice feature as well to keep you from,

216
00:13:07.050 --> 00:13:08.940
from accidentally overriding something you want.

217
00:13:09.200 --> 00:13:12.540
So to do this we're gonna use a few commands we've already learned so far.

218
00:13:12.800 --> 00:13:17.060
So I'm gonna test, I'm gonna create a test file and a test BK file for backup.

219
00:13:17.730 --> 00:13:21.380
Okay, so touch just like the cat command and other units commands,

220
00:13:21.380 --> 00:13:24.780
you can put two files that you want to create at the same time.

221
00:13:25.510 --> 00:13:29.390
And if we just do an LS, you can see that they are there. Okay?

222
00:13:29.410 --> 00:13:30.270
And then we're gonna,

223
00:13:30.840 --> 00:13:34.870
we're basically gonna echo and if you remember from the bash series we're gonna

224
00:13:34.980 --> 00:13:37.830
echo, echo means just it's going to uh, print something out,

225
00:13:38.050 --> 00:13:40.110
but we're gonna use a little redirection. And then,

226
00:13:40.110 --> 00:13:42.750
so we're gonna say new and then we're gonna say greater than.

227
00:13:42.750 --> 00:13:47.110
And what this means is say echo the new string into something.

228
00:13:47.130 --> 00:13:50.390
And in our case we want to echo that into the test file.

229
00:13:51.350 --> 00:13:56.270
And so if you just cat test, you could see that it has new inside of it. Okay,

230
00:13:56.370 --> 00:14:00.590
so we're gonna echo backup the word backup into the test

231
00:14:01.250 --> 00:14:05.990
BK file. And if we do test cat test bk, you can say it's a backup.

232
00:14:06.050 --> 00:14:07.430
All right, lemme clear the screen here again.

233
00:14:08.430 --> 00:14:10.170
So we're gonna use the move command.

234
00:14:10.190 --> 00:14:14.530
So what basically what we would wanna do is we're gonna move whatever's in test

235
00:14:14.760 --> 00:14:15.850
into test bk.

236
00:14:16.630 --> 00:14:20.130
And if we use the dash B flag here for backup,

237
00:14:23.340 --> 00:14:27.840
it should go ahead and create a copy of our backup file

238
00:14:28.060 --> 00:14:31.200
before it overrides it with the test file. Okay,

239
00:14:31.540 --> 00:14:35.520
so let's go ahead and hit return. Okay, no errors, that is good.

240
00:14:35.540 --> 00:14:36.400
So let's hit ls.

241
00:14:36.780 --> 00:14:41.440
And as you can see over here now on the test bk there is the

242
00:14:41.590 --> 00:14:46.570
test BK file. And then there's a test BK tilda in that. Let's go look at that.

243
00:14:46.670 --> 00:14:50.130
So test BK should be what the new test file was.

244
00:14:50.350 --> 00:14:55.200
So it should have contents of new. Now if we look at the test BK TILDA file,

245
00:14:55.990 --> 00:14:58.530
it is a copy of the original test backup file.

246
00:14:58.730 --> 00:15:00.290
Remember we echoed backup into that.

247
00:15:01.790 --> 00:15:04.530
So this would be a good command to use if you ever need to.

248
00:15:04.750 --> 00:15:06.290
You're moving files around a lot,

249
00:15:06.350 --> 00:15:09.410
but there's some that you want to keep a copy of that you wanna roll back to in

250
00:15:09.410 --> 00:15:13.410
case there's a problem. This is just an easy flag to use with the MV command.

251
00:15:13.670 --> 00:15:17.720
All right, lemme clear the screen. Let's move on to command five.

252
00:15:19.230 --> 00:15:23.080
Okay, so command five, while not necessarily a command per se,

253
00:15:23.180 --> 00:15:26.400
is probably the command I use the most when I'm terminal and that's terminal.

254
00:15:26.800 --> 00:15:27.760
I use this every day.

255
00:15:28.150 --> 00:15:31.280
This will allow you to search your terminal history for past commands using

256
00:15:31.280 --> 00:15:32.280
partial matches.

257
00:15:32.340 --> 00:15:37.290
So to activate this search you can just dorl R and you can see now

258
00:15:37.290 --> 00:15:40.930
it says reverse I search and I is for in case insensitive.

259
00:15:41.740 --> 00:15:44.930
Let's look at the last command. We just did the move dash B oh,

260
00:15:44.990 --> 00:15:49.650
you could see it already comes up and I could hit the return

261
00:15:49.790 --> 00:15:52.660
key here and it would basically do that.

262
00:15:52.940 --> 00:15:57.580
I could keep hitting control R and basically it'll keep going

263
00:15:57.580 --> 00:16:02.460
through my command history looking for move dash commands.

264
00:16:02.460 --> 00:16:06.220
It does a partial Mac. Now I could backspace, let's try cat.

265
00:16:06.760 --> 00:16:09.340
So we can see that there's a manca.

266
00:16:09.880 --> 00:16:12.060
If I do control R again,

267
00:16:12.260 --> 00:16:16.980
I could see that it is doing other cat commands of other

268
00:16:17.150 --> 00:16:20.220
times I've, I've typed this into our FA history.

269
00:16:20.720 --> 00:16:24.600
So this is extremely useful. And then control C to get out of it.

270
00:16:24.780 --> 00:16:27.240
And once you find the command, like for example,

271
00:16:27.240 --> 00:16:31.720
lemme go do a control R and then let's do cat and I hit return.

272
00:16:31.790 --> 00:16:34.760
Once I find the command, uh, due as a control r I can hit return,

273
00:16:34.810 --> 00:16:37.640
it'll run that command. Uh, lemme clear the screen here.

274
00:16:38.140 --> 00:16:40.560
So use control R when you wanna search your history,

275
00:16:40.560 --> 00:16:41.440
you can't think of a command,

276
00:16:41.440 --> 00:16:46.120
you can only think of partial matches and this will save you a lot of time

277
00:16:46.660 --> 00:16:49.320
of um, having to look up Google or, uh,

278
00:16:49.320 --> 00:16:52.480
stagger looking for how to run commands when you've already run it before.

279
00:16:53.060 --> 00:16:54.320
All right, let's move on to the next.

280
00:16:56.000 --> 00:17:00.740
Our six command is rm and let's go ahead and let's bring up demand page for

281
00:17:00.840 --> 00:17:02.260
RM just for good practice.

282
00:17:02.260 --> 00:17:06.980
And we can see here RM removes files or directories and

283
00:17:07.110 --> 00:17:10.380
there is a lot of flags under the description.

284
00:17:10.440 --> 00:17:13.700
Now this time there's an option section after description.

285
00:17:14.400 --> 00:17:17.500
And you can see here there's a force prompt before every removal.

286
00:17:17.520 --> 00:17:20.740
That's kind of like that interactive, the dash I there, um,

287
00:17:20.740 --> 00:17:25.220
you can see right there and there's a recursive. So if you wanna remove,

288
00:17:25.680 --> 00:17:27.300
so when you wanna remove a directory,

289
00:17:27.300 --> 00:17:31.460
which we'll do you need to dash r recursive because you can't remove a directory

290
00:17:31.460 --> 00:17:34.700
that is empty. That that, sorry, that is not empty. All right,

291
00:17:34.700 --> 00:17:38.560
so we're gonna hit Q to get out of here and then let's go ahead and clear the

292
00:17:38.560 --> 00:17:39.393
screen.

293
00:17:39.450 --> 00:17:44.430
So let's go ahead and remove the backup directory here that

294
00:17:44.430 --> 00:17:48.070
we made for the hands-on Lennox for DevOps, cloud engineers backup.

295
00:17:48.690 --> 00:17:50.640
So to do that we're gonna use the RM command.

296
00:17:50.670 --> 00:17:53.640
This time we're gonna use the dash R for recursive cause we wanna move all the

297
00:17:53.640 --> 00:17:57.320
files inside the directory plus the directory and we're gonna use dash F because

298
00:17:57.320 --> 00:18:00.640
we don't wanna be prompted for every file or anything that comes up.

299
00:18:00.740 --> 00:18:03.880
So if we dash F, it just forces it, don't prompt me, just remove it all.

300
00:18:03.880 --> 00:18:08.160
We know what we're doing. And then, so here we're gonna say backup.

301
00:18:09.500 --> 00:18:10.120
So this command,

302
00:18:10.120 --> 00:18:15.080
we're gonna remove all the contents and the directory for the backup copy that

303
00:18:15.080 --> 00:18:17.630
we made earlier. So I'll hit return

304
00:18:19.130 --> 00:18:20.430
and if we hit ls,

305
00:18:21.480 --> 00:18:26.320
you could see now the directory is gone while the original still says okay,

306
00:18:26.420 --> 00:18:31.120
so you will use RM minus rf, you'll use RM when removing a file,

307
00:18:31.540 --> 00:18:33.320
um, as you have done previously.

308
00:18:33.940 --> 00:18:36.590
They're both a command that you're gonna use often. Alright,

309
00:18:36.640 --> 00:18:40.620
let's move on to the next command. Alright, let me clear the screen.

310
00:18:41.370 --> 00:18:44.860
Okay, uh, command number seven is the fine command. Um,

311
00:18:45.090 --> 00:18:48.700
this is great for finding files of directories inside your file system.

312
00:18:49.030 --> 00:18:51.980
There is a plethora of flags that you can use,

313
00:18:52.000 --> 00:18:55.660
but we're only gonna focus on like finding some files and directories plus,

314
00:18:55.660 --> 00:18:55.940
we'll,

315
00:18:55.940 --> 00:18:58.980
we'll add a little special thing in here where you can find files over specific

316
00:18:59.090 --> 00:19:04.010
size. So find as its first option, we will take where you wanna search,

317
00:19:04.390 --> 00:19:06.330
you wanna search locally and the local directory in,

318
00:19:06.610 --> 00:19:09.690
you wanna search some other director in the file system and then it takes other

319
00:19:09.820 --> 00:19:13.810
flags. But so like I said, we're gonna focus on finding a file first.

320
00:19:14.230 --> 00:19:16.290
And so we will use the fine command,

321
00:19:16.740 --> 00:19:20.250
we're gonna use a.as the first argument we passed through CZs is gonna say, Hey,

322
00:19:20.250 --> 00:19:21.930
search in the local directory you're in.

323
00:19:23.870 --> 00:19:27.940
We'll use the dash type here cuz we wanted to tell fine we're looking for a file

324
00:19:29.020 --> 00:19:29.840
so we can, you know,

325
00:19:29.840 --> 00:19:33.440
obviously if you just don't specify if it's file or directory,

326
00:19:33.440 --> 00:19:35.440
it'll search both. But here we,

327
00:19:35.440 --> 00:19:37.600
we can speed it up by saying we just want a file.

328
00:19:38.800 --> 00:19:41.610
Then we're gonna use the dash name cuz we need the name of the file.

329
00:19:41.630 --> 00:19:44.610
And then let's just look for guessing game right now in our local directory.

330
00:19:44.950 --> 00:19:49.410
Go ahead and return. As you can see, it returns the file that it found.

331
00:19:50.210 --> 00:19:54.220
Okay, so let's just hit the up arrow once and instead of the type F,

332
00:19:54.230 --> 00:19:55.660
let's change it to type D.

333
00:19:56.080 --> 00:19:58.820
And this is saying let's search for the type of a directory.

334
00:19:59.160 --> 00:20:02.220
Now you would expect this to not return anything and if that's what you're

335
00:20:02.220 --> 00:20:05.860
guessing you were correct because obviously the guessing game is a file,

336
00:20:05.920 --> 00:20:10.740
not a director. But as you could see, if you want to,

337
00:20:10.740 --> 00:20:15.460
to search for let's say an Etsy directory in the local directory,

338
00:20:15.460 --> 00:20:19.020
that does not exist. But if you went,

339
00:20:21.690 --> 00:20:25.070
but if you went to the slash you wanted to search in a different area,

340
00:20:25.140 --> 00:20:29.390
like slash you could then you would return the um,

341
00:20:29.970 --> 00:20:33.600
the directory itself. Okay, let's go ahead and clear.

342
00:20:33.640 --> 00:20:36.560
I wanna show you something I think is, let me clear this screen right here.

343
00:20:37.000 --> 00:20:38.480
I think this is an interesting uh,

344
00:20:38.480 --> 00:20:42.040
command because sometimes as a Linux administrator or DevOps engineer,

345
00:20:42.380 --> 00:20:43.360
you will get on a box,

346
00:20:43.360 --> 00:20:46.080
you get an alert that the box is running out of disk space.

347
00:20:46.660 --> 00:20:51.360
And one way that you can actually find this stuff is by using the fine

348
00:20:51.360 --> 00:20:54.920
command. And let's say you wanna find all the files over a specific size.

349
00:20:54.980 --> 00:20:56.000
And so in our case,

350
00:20:56.780 --> 00:21:00.600
we are gonna look for files in the var log directory that are over,

351
00:21:00.930 --> 00:21:05.210
let's just say 10 mags here we have to use pseudo because some of those logs in

352
00:21:05.210 --> 00:21:08.650
that in the VAR log are, are uh, need elevated permission. So we'll do this.

353
00:21:08.650 --> 00:21:12.400
So we'll do find bar spa, uh, slash log.

354
00:21:12.930 --> 00:21:14.000
We're gonna say type

355
00:21:17.580 --> 00:21:20.410
F and then we're gonna do dash size.

356
00:21:20.590 --> 00:21:23.650
And then here we're gonna say plus cuz we want it larger then.

357
00:21:24.230 --> 00:21:28.620
And then we're gonna use 10 meg. Okay, so when you hit return here,

358
00:21:29.200 --> 00:21:33.840
as you can see we got two files that were returned to us. One is a,

359
00:21:33.840 --> 00:21:37.000
they're both journal files from the journal system D journal,

360
00:21:37.940 --> 00:21:42.480
and as you can see, so those files are both over 10 megs. Um, and here l let me,

361
00:21:42.900 --> 00:21:47.750
we can go ahead and let me copy this and if we do the dash

362
00:21:48.250 --> 00:21:52.350
LH command again choose to a human readable size, we hit enter.

363
00:21:52.850 --> 00:21:56.990
We could see that this file is indeed over 10 megs. It's 72 megs.

364
00:21:57.770 --> 00:22:00.830
All right, that was fine. Let's move on. Let me clear the screen.

365
00:22:03.070 --> 00:22:04.720
Okay, our eighth command is gre.

366
00:22:05.060 --> 00:22:08.680
So the GRE command is one of your go-to commands in your tool belt when you need

367
00:22:08.680 --> 00:22:11.840
to search for something inside files inside like your source code,

368
00:22:12.340 --> 00:22:15.680
you can use this for searching for failed os and uh,

369
00:22:15.680 --> 00:22:20.120
the on like the secure log or like say you're searching an engine X, uh,

370
00:22:20.120 --> 00:22:22.920
or Apache logs, you can look for non 200 s in there.

371
00:22:23.100 --> 00:22:24.680
So there's lots of different use cases here.

372
00:22:25.220 --> 00:22:28.840
So one of the things that we will look for first is basically searching,

373
00:22:28.930 --> 00:22:33.460
using a pattern and we're gonna search the our vlog secure file,

374
00:22:33.460 --> 00:22:37.180
which handles like the authentication stuff that comes in on Amazon Lennox.

375
00:22:38.480 --> 00:22:42.500
So we're gonna use grip and then we're gonna use double quotes here because

376
00:22:43.150 --> 00:22:47.700
there is a space in between the our search pattern that we're looking for.

377
00:22:47.920 --> 00:22:51.500
And this is gonna be sessioned open and we just want to basically look for all

378
00:22:51.520 --> 00:22:56.380
the, the lines, the log lines insecure that say SESSIONED open in them.

379
00:22:56.830 --> 00:22:58.540
There should be quite a bit here. Um,

380
00:22:58.560 --> 00:23:01.660
but it's gonna vary depending on your system on how many times you've logged in

381
00:23:01.660 --> 00:23:06.660
and out of course. So we'll go ahead and hit enter. And as you can see here,

382
00:23:07.040 --> 00:23:10.710
we have a lot of, um, output here,

383
00:23:10.710 --> 00:23:14.150
especially all like the Pam Munich's session opened for roots. So this,

384
00:23:14.150 --> 00:23:16.830
every time we use pseudo, as you can see here, it opens one,

385
00:23:17.130 --> 00:23:19.630
the s SSH session here is opened up.

386
00:23:19.850 --> 00:23:23.950
So there we dwindled it down to only what we were really looking for

387
00:23:24.860 --> 00:23:26.080
inside a log that maybe,

388
00:23:26.180 --> 00:23:29.560
so you could see if you had a log with tons of FI lines in it and you're only

389
00:23:29.560 --> 00:23:33.760
looking for a a, a few certain things, GRE is a great way to dwindle that down.

390
00:23:33.760 --> 00:23:36.870
All right, lemme clear the screen. So the next uh,

391
00:23:36.930 --> 00:23:40.740
two flags that are important here with GRE is dash R,

392
00:23:41.030 --> 00:23:44.300
which you remember from other news command means recursive and it means the same

393
00:23:44.300 --> 00:23:45.020
thing here.

394
00:23:45.020 --> 00:23:49.920
We want greep to search a whole directory and then you could use Dash I if

395
00:23:49.920 --> 00:23:52.000
you want to do case insensitive, meaning like,

396
00:23:52.040 --> 00:23:54.520
I don't know if this is capitalized or not capitalized. I don't care.

397
00:23:54.520 --> 00:23:57.690
Show me both. So in this case, what we're gonna look for,

398
00:23:57.690 --> 00:24:00.250
if you remember when we did the, and when we did Lenox security,

399
00:24:00.630 --> 00:24:05.290
we ran a test PAM file every time we logged in V ss h,

400
00:24:06.650 --> 00:24:11.030
we could search for that line in all of the Pam DOD directory and we could use

401
00:24:11.030 --> 00:24:12.070
it as a partial search.

402
00:24:12.090 --> 00:24:15.350
So let's do pseudo cuz we need elevated privileges cuz it's in the PAM

403
00:24:15.350 --> 00:24:20.280
directory. We'll do dash RI and we're gonna say Test Pam.

404
00:24:20.700 --> 00:24:22.640
We don't know what else we couldn't, you know,

405
00:24:22.640 --> 00:24:24.520
we can't remember what else was on that line.

406
00:24:25.180 --> 00:24:29.280
So we'll just do a partial match and then we're gonna say everything inside the

407
00:24:29.280 --> 00:24:33.070
test Pam and then the PAM Dotd directory. So as you can see,

408
00:24:33.070 --> 00:24:38.070
there it is and we found it in the S S H D file and

409
00:24:38.070 --> 00:24:42.310
the colon just says the line it's on. But obviously that's great, but like,

410
00:24:42.310 --> 00:24:45.670
let's say it was a big file and we, we wanted to see what, well,

411
00:24:45.670 --> 00:24:49.790
what line number is this on? You can add the dash N in here. And as you can see,

412
00:24:49.810 --> 00:24:51.830
it tells us now we're on line.

413
00:24:51.860 --> 00:24:56.470
This line that had found the test underscore pam search criteria is on line

414
00:24:56.750 --> 00:25:01.170
19. All right, let's clear the screen. Let's move on to number nine.

415
00:25:03.700 --> 00:25:07.620
All right, the next command is use.

416
00:25:07.620 --> 00:25:12.340
When you wanna output a number of lines from a file or you want to say

417
00:25:12.600 --> 00:25:16.500
you want to follow a a log file, you, you're looking for debug errors,

418
00:25:16.500 --> 00:25:18.660
you're looking for, uh, security implications,

419
00:25:18.660 --> 00:25:23.380
and you just want to continuously follow the output of a file in real time.

420
00:25:23.800 --> 00:25:26.900
You could do this with the tail command and let's go ahead and look at tail.

421
00:25:26.920 --> 00:25:28.100
So let's do man tail

422
00:25:30.030 --> 00:25:33.650
and it says output the last parts of a file. Um, as you see here,

423
00:25:33.650 --> 00:25:36.090
there's a bunch of different flags here.

424
00:25:36.550 --> 00:25:39.530
We are gonna focus on just two of these in the description,

425
00:25:39.910 --> 00:25:44.770
the dash F or dash follow and the dash n or dash

426
00:25:44.770 --> 00:25:46.530
dash lines equal. Um,

427
00:25:46.830 --> 00:25:50.930
and so as you can see the dash follow just outputs appended data as the file

428
00:25:50.980 --> 00:25:54.090
grows. So as you know, as new lines come to the bottom of the file,

429
00:25:54.230 --> 00:25:58.170
you'll be able to see them in real time. Dash N says, Hey,

430
00:25:58.210 --> 00:26:03.050
I want to output the last few lines of a file or this many, uh, lines of file.

431
00:26:03.150 --> 00:26:05.530
The default is 10. And so we'll, we'll output,

432
00:26:05.530 --> 00:26:07.530
they'll say like the last one or something. Okay,

433
00:26:07.590 --> 00:26:11.410
so hit queue to get out of our man page, clear the screen we're,

434
00:26:11.410 --> 00:26:13.530
and we're gonna use the secure log again.

435
00:26:13.910 --> 00:26:15.610
So which means we'll have to use pseudo.

436
00:26:19.580 --> 00:26:23.720
So we're gonna tail F and we're gonna follow a log. Now, once I hit return,

437
00:26:23.720 --> 00:26:24.720
it's basically gonna, uh,

438
00:26:24.720 --> 00:26:28.360
it's gonna block while it's waiting for new lines to come to the end of the

439
00:26:28.360 --> 00:26:30.150
file. Um, as you can see here,

440
00:26:30.150 --> 00:26:33.470
I can hit return a few times and it's just holding here with the cursor

441
00:26:33.470 --> 00:26:35.830
blinking. It's because it's waiting for new, uh,

442
00:26:35.830 --> 00:26:38.910
lines to show up in this vlog file. Obviously we can sit here and wait,

443
00:26:38.910 --> 00:26:42.310
it may take a long time. So I'm, I'm not gonna do that to you, but just to know,

444
00:26:42.490 --> 00:26:47.160
you can use the dash F to get out of the tail follow you use the control c

445
00:26:47.590 --> 00:26:52.080
command to con get yourself out of it. All right, let me clear the screen.

446
00:26:52.620 --> 00:26:55.920
And so the next one we're gonna do is let me uh, hit the up arrow.

447
00:26:55.920 --> 00:26:56.600
We'll go back,

448
00:26:56.600 --> 00:27:01.400
we'll get rid of the dash F and in this case I'm gonna say give me the last line

449
00:27:01.740 --> 00:27:05.180
of secure log file. And as you can see here,

450
00:27:05.180 --> 00:27:08.140
it only printed out the last line in the the secure file,

451
00:27:08.140 --> 00:27:11.780
which happens to be the pseudo command I just ran, which, uh,

452
00:27:11.820 --> 00:27:16.340
I did not plan that, but irony. So there you have tail,

453
00:27:16.490 --> 00:27:19.460
very useful command when you're troubleshooting or looking for security related

454
00:27:19.560 --> 00:27:24.150
issues, you will use it quite often. All right, let me clear the screen.

455
00:27:24.560 --> 00:27:28.920
Let's head on to the final command. Okay,

456
00:27:28.980 --> 00:27:33.480
so we've reached the end of our command and this last command is called less and

457
00:27:33.480 --> 00:27:35.920
it allows you to tra file forwards and backwards.

458
00:27:35.940 --> 00:27:38.560
It also lets you search and file inside the file as well.

459
00:27:39.220 --> 00:27:44.040
So let's go ahead and we are gonna use the command less and let's go pick

460
00:27:44.120 --> 00:27:46.720
a file here. And, um,

461
00:27:48.160 --> 00:27:51.550
let's just do the lab terraform the read me file in there.

462
00:27:52.280 --> 00:27:54.940
So when I hit return, it's gonna put me in a,

463
00:27:54.940 --> 00:27:59.740
like a pager almost where it's gonna open the file and we're gonna be in the

464
00:27:59.740 --> 00:28:04.630
file kind of almost very man page similar where here we are

465
00:28:04.730 --> 00:28:08.670
in the file and as you can see we haven't, it didn't just spit it out.

466
00:28:09.090 --> 00:28:10.150
And then the command end,

467
00:28:10.370 --> 00:28:12.950
we are doing this and there's different commands that we can look in here.

468
00:28:13.330 --> 00:28:14.163
So for example,

469
00:28:15.200 --> 00:28:19.020
we can do this forward slash here like I've done in the terminal and I can

470
00:28:19.020 --> 00:28:23.650
search from the top down through the file and then let's search for the word

471
00:28:23.790 --> 00:28:28.350
key, hit return. And now it finds the first, second, third,

472
00:28:28.370 --> 00:28:31.070
and all that. Basically they're highlighted here. Um,

473
00:28:31.070 --> 00:28:34.190
in case it's maybe not showing up your screen, it's recognizing all the,

474
00:28:34.290 --> 00:28:37.150
the words with key in it. Maybe they're, you know, it different things.

475
00:28:37.150 --> 00:28:42.070
Like here it says create SSH keys.sh and the word key is obviously in that these

476
00:28:42.070 --> 00:28:46.730
are partial matches as you can imagine. So if you hit the end key,

477
00:28:47.730 --> 00:28:52.240
it'll keep searching for that key from top to bottom to keep going all the way

478
00:28:52.240 --> 00:28:54.960
down. And so if you just keep doing it, it'll keep finding key,

479
00:28:55.110 --> 00:28:55.943
keep hitting end.

480
00:28:56.340 --> 00:29:00.200
And if you do all the way until you hit the bottom of we've hit the bottom of

481
00:29:00.200 --> 00:29:03.250
the file and you can see here it says pattern not found. Okay,

482
00:29:03.600 --> 00:29:06.410
well we searched one way from top down,

483
00:29:06.470 --> 00:29:10.610
we can now search the other way back up and you could do that with the question

484
00:29:10.610 --> 00:29:12.290
mark. So you could do shift question mark.

485
00:29:13.170 --> 00:29:15.110
Now let's search for the AW w s command.

486
00:29:15.110 --> 00:29:18.110
Now this is search from the bottom of the file which we had reached all the way

487
00:29:18.110 --> 00:29:22.240
to the top. And as you can see, this will, uh, you can see right here we found,

488
00:29:22.420 --> 00:29:22.740
uh,

489
00:29:22.740 --> 00:29:27.600
one instance of the S SSH AWS term and if I hit N it'll keep

490
00:29:27.600 --> 00:29:30.400
searching up to the top of the file. And if I hit one more time,

491
00:29:30.460 --> 00:29:33.680
now we've reached the top of the file and now we can't look any further.

492
00:29:33.700 --> 00:29:35.280
So we've done everything we can.

493
00:29:35.460 --> 00:29:38.120
So to get out of less you can hit the Q command.

494
00:29:39.160 --> 00:29:43.200
And so now we're out of the less things. Another thing that you can do,

495
00:29:43.900 --> 00:29:45.210
which is kind of like cat,

496
00:29:45.830 --> 00:29:49.650
is that you can open up two files unless at the same time.

497
00:29:50.190 --> 00:29:54.730
So let's open up the guessing game file and then let's look on hands.

498
00:29:55.190 --> 00:30:00.130
Uh, let's just go to section four something and let's look at the password

499
00:30:00.370 --> 00:30:03.880
database file. Okay, this is just a helper file, uh, that I've provided.

500
00:30:03.880 --> 00:30:08.520
So you can see what the format of the, that the pass Etsy password file is.

501
00:30:08.980 --> 00:30:10.040
So if I hit return,

502
00:30:10.700 --> 00:30:14.160
you could see that we've opened the guessing game first and it tells us here at

503
00:30:14.160 --> 00:30:18.280
the bottom file one of two and then, then tells us what the next file is. If

504
00:30:22.950 --> 00:30:26.360
you do the shift colon n command,

505
00:30:26.360 --> 00:30:31.350
it'll bring you to the next file in the list. And if you do shift colon p,

506
00:30:31.720 --> 00:30:36.110
it'll bring us back to the first file in the list that we are on ls.

507
00:30:36.210 --> 00:30:39.470
So it's a good way if you need to open up two files and you're looking at, um,

508
00:30:39.470 --> 00:30:41.550
looking at you need something from each of the files,

509
00:30:41.550 --> 00:30:44.110
this is a good way to go back and forth and kind of see that. Okay,

510
00:30:44.210 --> 00:30:48.720
hit Q to get out. Let me clear the screen. Alright, so there we have it.

511
00:30:48.720 --> 00:30:52.160
There's our 10 most common commands. Let's head back over and do a recap.

512
00:30:54.300 --> 00:30:56.110
Okay, so let's talk about what we did in this video.

513
00:30:56.650 --> 00:31:00.350
You learned about frequently used commands in Lennox. We went over 10 of them.

514
00:31:00.770 --> 00:31:04.670
You practiced finding information about some of these commands using man pages.

515
00:31:05.150 --> 00:31:07.880
Finally, you ran each command and learned how to use them.

516
00:31:09.820 --> 00:31:10.653
In the next video,

517
00:31:10.660 --> 00:31:14.520
you'll learn about some common AW S C L I commands that can duplicate what you

518
00:31:14.520 --> 00:31:17.680
did in the AW S web console earlier. See you soon.
