1
00:00:01,270 --> 00:00:06,670
The mkdir command is used to create directories.

2
00:00:06,670 --> 00:00:10,540
And here let's actually write our mkdir how it looks like here.

3
00:00:10,540 --> 00:00:15,490
So m k here that's actually make directory here.

4
00:00:15,490 --> 00:00:17,740
Basically make there.

5
00:00:17,980 --> 00: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

6
00:00:23,950 --> 00:00:25,750
enter the directory name.

7
00:00:25,750 --> 00:00:33,400
So I was so here that when three periods full of an argument in the description of a command here,

8
00:00:33,400 --> 00:00:36,160
for example my dear one.

9
00:00:37,290 --> 00:00:39,570
So it means that the argument can be repeated.

10
00:00:39,570 --> 00:00:41,730
So do use here.

11
00:00:41,730 --> 00:00:47,450
With this we created just a single command in order to do more than one directory.

12
00:00:47,490 --> 00:00:48,060
So you will.

13
00:00:48,420 --> 00: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

14
00:00:57,990 --> 00:01:00,810
four my special.

15
00:01:01,890 --> 00:01:05,430
And here, as you can see here we created my dear.

16
00:01:05,430 --> 00:01:07,200
One, two, three, four.

17
00:01:07,200 --> 00:01:09,270
And my special dear here.

18
00:01:09,270 --> 00:01:14,010
So we can also use the CP copy files and directories command here.

19
00:01:14,010 --> 00:01:16,680
Actually, let me write it right down here.

20
00:01:17,730 --> 00:01:18,390
Yeah.

21
00:01:18,390 --> 00:01:20,190
C p.

22
00:01:20,520 --> 00:01:22,500
Basically it's copies here.

23
00:01:22,500 --> 00:01:26,610
We can with this command, we can copy files and directories.

24
00:01:26,610 --> 00:01:32,610
As I said, the CP command copies, files and directories and it can be used in two different ways.

25
00:01:32,610 --> 00:01:37,450
So we can also actually let us see what we, what files we have.

26
00:01:37,480 --> 00:01:42,340
So this is our directory we will work in, This is our directory, we will, we're going to work in

27
00:01:42,340 --> 00:01:44,200
and this is our file.

28
00:01:44,200 --> 00:01:47,020
We're going to use the two CP command here.

29
00:01:47,020 --> 00:01:54,520
So, so first you will see, for example, feel my copied.

30
00:01:54,550 --> 00:01:54,910
Oops.

31
00:01:54,910 --> 00:01:55,270
Yeah.

32
00:01:55,270 --> 00:01:56,080
Copy it.

33
00:01:56,110 --> 00:02:00,220
Feel here and ls And as you can see, we created my copied field.

34
00:02:00,220 --> 00:02:04,180
So we copied this field to this here.

35
00:02:05,080 --> 00:02:06,010
So.

36
00:02:07,320 --> 00:02:08,520
We can also.

37
00:02:09,240 --> 00:02:13,980
Copy the single file or directory item one to the file or directory item two.

38
00:02:14,250 --> 00:02:16,230
So we can also do that for example.

39
00:02:16,270 --> 00:02:18,240
CPP file.

40
00:02:18,240 --> 00:02:21,120
And after that we will can also music here.

41
00:02:21,120 --> 00:02:24,480
And let's see the music.

42
00:02:24,720 --> 00:02:26,370
Music and ls here.

43
00:02:26,370 --> 00:02:34,110
And as you can see here, we copied our field file inside our music directory here.

44
00:02:34,410 --> 00:02:38,550
That's it with basic introduction of CPP command here.

45
00:02:38,550 --> 00:02:41,790
So you can also learn more information with CPP.

46
00:02:42,150 --> 00:02:48,450
And here, as you can see here, CPP is for used copy files and directories, copy source or to destination

47
00:02:48,450 --> 00:02:50,580
or multiple source to a directory.

48
00:02:50,580 --> 00:02:56,160
And mandatory arguments to long options are mandatory for short options too.

49
00:02:56,160 --> 00:03:03,510
And as you can see, we have archive attributes only backup the the reference preserve links and another

50
00:03:03,510 --> 00:03:07,950
commands here so you can also learn more about the CPP commands.

51
00:03:07,950 --> 00:03:12,310
It's actually most popular command, one of the most popular commands in Linux.

52
00:03:12,310 --> 00:03:13,180
So.

53
00:03:13,860 --> 00:03:16,500
Let's create an example with it right now.

54
00:03:16,500 --> 00:03:20,280
And firstly, let's actually use the MV command.

55
00:03:20,310 --> 00:03:24,510
M v command as the name suggests.

56
00:03:25,610 --> 00:03:26,090
Envy.

57
00:03:27,290 --> 00:03:31,460
Moves and is used for moving and renaming files in Linux.

58
00:03:31,460 --> 00:03:36,230
So the MOVE command performs both file and file renaming.

59
00:03:36,230 --> 00:03:40,690
So file moving and file renaming depending on how it is used.

60
00:03:40,700 --> 00:03:47,030
In either case, the original file name no longer exists after the operation, so env used in much the

61
00:03:47,030 --> 00:03:50,450
same way as a as a CP for example.

62
00:03:50,780 --> 00:03:51,350
Env.

63
00:03:51,380 --> 00:03:53,420
Firstly we're going to ls oops.

64
00:03:53,870 --> 00:03:54,470
Yeah.

65
00:03:54,830 --> 00:03:56,960
Env file here.

66
00:03:56,960 --> 00: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

67
00:04:06,560 --> 00:04:07,670
exists.

68
00:04:09,080 --> 00:04:10,130
Uh, in here.

69
00:04:10,130 --> 00:04:13,820
We with the commands, with E here.

70
00:04:13,850 --> 00:04:16,520
And we e we, we, we.

71
00:04:16,520 --> 00:04:17,960
This is the interactive means here.

72
00:04:17,960 --> 00:04:23,660
So before overwriting an existing file, prompt the user for confirmation.

73
00:04:23,660 --> 00:04:30,170
If the option is not specified, specified env will silently overwrite files.

74
00:04:30,170 --> 00:04:42,020
So for example, let's try with this env renamed renamed file and two old file old file.

75
00:04:42,020 --> 00:04:49,010
And and as you can see, this is specified without asking to, uh, do it or not.

76
00:04:49,680 --> 00:04:54,120
So let's actually learn about Air Command here.

77
00:04:54,150 --> 00:04:56,430
Air M here.

78
00:04:56,790 --> 00:04:58,650
Actually, let's make it a bit nicer.

79
00:04:58,650 --> 00:05:01,200
Air M.

80
00:05:02,470 --> 00:05:03,420
Here.

81
00:05:03,430 --> 00:05:05,650
This is, as the name suggests.

82
00:05:05,680 --> 00:05:08,110
Remove here.

83
00:05:08,260 --> 00:05:17,140
So the command is used to remove delete files and directories with just a single command.

84
00:05:17,170 --> 00:05:22,990
In order to do that, we're going to actually go here, clear here.

85
00:05:22,990 --> 00:05:25,440
And after that we will actually let loose.

86
00:05:25,510 --> 00:05:28,550
And as you can see, we have a file named Old file.

87
00:05:29,200 --> 00:05:30,220
Old file.

88
00:05:30,220 --> 00:05:33,220
And here, as you can see, we no longer have files here.

89
00:05:33,220 --> 00:05:37,030
So you can also use the same options.

90
00:05:37,030 --> 00:05:43,060
And in the previous env command, for example, you can also use the interactive.

91
00:05:43,060 --> 00:05:46,420
So torch some files.

92
00:05:46,480 --> 00:05:48,880
And here, as you can see, we created a new file.

93
00:05:49,210 --> 00: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?

94
00:05:59,560 --> 00:06:01,090
And and you can.

95
00:06:01,150 --> 00:06:01,820
Yes.

96
00:06:01,820 --> 00:06:06,440
And as you can see here, our file is removed.

97
00:06:07,320 --> 00:06:12,090
And we can also in the previous lecture we did learn creating links and hard links.

98
00:06:12,120 --> 00:06:18,000
Symbolic links which you will learn in more depth in next lecture.

99
00:06:18,000 --> 00:06:18,930
So I'm waiting you in.

100
00:06:18,930 --> 00:06:19,410
Next lecture.
