WEBVTT

00:01.270 --> 00:06.670
The mkdir command is used to create directories.

00:06.670 --> 00:10.540
And here let's actually write our mkdir how it looks like here.

00:10.540 --> 00:15.490
So m k here that's actually make directory here.

00:15.490 --> 00:17.740
Basically make there.

00:17.980 --> 00:23.950
So here in order to work with MQTT here you're going to firstly use the mkdir and after that you will

00:23.950 --> 00:25.750
enter the directory name.

00:25.750 --> 00:33.400
So I was so here that when three periods full of an argument in the description of a command here,

00:33.400 --> 00:36.160
for example my dear one.

00:37.290 --> 00:39.570
So it means that the argument can be repeated.

00:39.570 --> 00:41.730
So do use here.

00:41.730 --> 00:47.450
With this we created just a single command in order to do more than one directory.

00:47.490 --> 00:48.060
So you will.

00:48.420 --> 00:57.960
You can also do this mkdir here, my dear, my dear to my dear three or my, my dear three, my dear

00:57.990 --> 01:00.810
four my special.

01:01.890 --> 01:05.430
And here, as you can see here we created my dear.

01:05.430 --> 01:07.200
One, two, three, four.

01:07.200 --> 01:09.270
And my special dear here.

01:09.270 --> 01:14.010
So we can also use the CP copy files and directories command here.

01:14.010 --> 01:16.680
Actually, let me write it right down here.

01:17.730 --> 01:18.390
Yeah.

01:18.390 --> 01:20.190
C p.

01:20.520 --> 01:22.500
Basically it's copies here.

01:22.500 --> 01:26.610
We can with this command, we can copy files and directories.

01:26.610 --> 01:32.610
As I said, the CP command copies, files and directories and it can be used in two different ways.

01:32.610 --> 01:37.450
So we can also actually let us see what we, what files we have.

01:37.480 --> 01:42.340
So this is our directory we will work in, This is our directory, we will, we're going to work in

01:42.340 --> 01:44.200
and this is our file.

01:44.200 --> 01:47.020
We're going to use the two CP command here.

01:47.020 --> 01:54.520
So, so first you will see, for example, feel my copied.

01:54.550 --> 01:54.910
Oops.

01:54.910 --> 01:55.270
Yeah.

01:55.270 --> 01:56.080
Copy it.

01:56.110 --> 02:00.220
Feel here and ls And as you can see, we created my copied field.

02:00.220 --> 02:04.180
So we copied this field to this here.

02:05.080 --> 02:06.010
So.

02:07.320 --> 02:08.520
We can also.

02:09.240 --> 02:13.980
Copy the single file or directory item one to the file or directory item two.

02:14.250 --> 02:16.230
So we can also do that for example.

02:16.270 --> 02:18.240
CPP file.

02:18.240 --> 02:21.120
And after that we will can also music here.

02:21.120 --> 02:24.480
And let's see the music.

02:24.720 --> 02:26.370
Music and ls here.

02:26.370 --> 02:34.110
And as you can see here, we copied our field file inside our music directory here.

02:34.410 --> 02:38.550
That's it with basic introduction of CPP command here.

02:38.550 --> 02:41.790
So you can also learn more information with CPP.

02:42.150 --> 02:48.450
And here, as you can see here, CPP is for used copy files and directories, copy source or to destination

02:48.450 --> 02:50.580
or multiple source to a directory.

02:50.580 --> 02:56.160
And mandatory arguments to long options are mandatory for short options too.

02:56.160 --> 03:03.510
And as you can see, we have archive attributes only backup the the reference preserve links and another

03:03.510 --> 03:07.950
commands here so you can also learn more about the CPP commands.

03:07.950 --> 03:12.310
It's actually most popular command, one of the most popular commands in Linux.

03:12.310 --> 03:13.180
So.

03:13.860 --> 03:16.500
Let's create an example with it right now.

03:16.500 --> 03:20.280
And firstly, let's actually use the MV command.

03:20.310 --> 03:24.510
M v command as the name suggests.

03:25.610 --> 03:26.090
Envy.

03:27.290 --> 03:31.460
Moves and is used for moving and renaming files in Linux.

03:31.460 --> 03:36.230
So the MOVE command performs both file and file renaming.

03:36.230 --> 03:40.690
So file moving and file renaming depending on how it is used.

03:40.700 --> 03:47.030
In either case, the original file name no longer exists after the operation, so env used in much the

03:47.030 --> 03:50.450
same way as a as a CP for example.

03:50.780 --> 03:51.350
Env.

03:51.380 --> 03:53.420
Firstly we're going to ls oops.

03:53.870 --> 03:54.470
Yeah.

03:54.830 --> 03:56.960
Env file here.

03:56.960 --> 04:06.560
And after that my renamed file and ls and as you can see we renamed the feel and the feel file no longer

04:06.560 --> 04:07.670
exists.

04:09.080 --> 04:10.130
Uh, in here.

04:10.130 --> 04:13.820
We with the commands, with E here.

04:13.850 --> 04:16.520
And we e we, we, we.

04:16.520 --> 04:17.960
This is the interactive means here.

04:17.960 --> 04:23.660
So before overwriting an existing file, prompt the user for confirmation.

04:23.660 --> 04:30.170
If the option is not specified, specified env will silently overwrite files.

04:30.170 --> 04:42.020
So for example, let's try with this env renamed renamed file and two old file old file.

04:42.020 --> 04:49.010
And and as you can see, this is specified without asking to, uh, do it or not.

04:49.680 --> 04:54.120
So let's actually learn about Air Command here.

04:54.150 --> 04:56.430
Air M here.

04:56.790 --> 04:58.650
Actually, let's make it a bit nicer.

04:58.650 --> 05:01.200
Air M.

05:02.470 --> 05:03.420
Here.

05:03.430 --> 05:05.650
This is, as the name suggests.

05:05.680 --> 05:08.110
Remove here.

05:08.260 --> 05:17.140
So the command is used to remove delete files and directories with just a single command.

05:17.170 --> 05:22.990
In order to do that, we're going to actually go here, clear here.

05:22.990 --> 05:25.440
And after that we will actually let loose.

05:25.510 --> 05:28.550
And as you can see, we have a file named Old file.

05:29.200 --> 05:30.220
Old file.

05:30.220 --> 05:33.220
And here, as you can see, we no longer have files here.

05:33.220 --> 05:37.030
So you can also use the same options.

05:37.030 --> 05:43.060
And in the previous env command, for example, you can also use the interactive.

05:43.060 --> 05:46.420
So torch some files.

05:46.480 --> 05:48.880
And here, as you can see, we created a new file.

05:49.210 --> 05:59.020
You can also come here and test and as you can see here now, it asks for do we want to remove the file?

05:59.560 --> 06:01.090
And and you can.

06:01.150 --> 06:01.820
Yes.

06:01.820 --> 06:06.440
And as you can see here, our file is removed.

06:07.320 --> 06:12.090
And we can also in the previous lecture we did learn creating links and hard links.

06:12.120 --> 06:18.000
Symbolic links which you will learn in more depth in next lecture.

06:18.000 --> 06:18.930
So I'm waiting you in.

06:18.930 --> 06:19.410
Next lecture.
