1
00:00:04,780 --> 00:00:05,190
All right.

2
00:00:05,430 --> 00:00:12,380
Let's not try to do it on practice and let's agree to archive that will contain all files and folders

3
00:00:12,390 --> 00:00:15,210
located in a home directory for this user.

4
00:00:15,590 --> 00:00:21,450
I am currently inside of this home directory, and if I list files and folders here, I should see some

5
00:00:21,450 --> 00:00:26,160
files and a single folder that I have created over the course of the previous sections.

6
00:00:27,180 --> 00:00:30,750
Create archive that will contain all those files and folders.

7
00:00:31,050 --> 00:00:31,840
All right, Tom.

8
00:00:32,400 --> 00:00:35,130
And next, I need to use Option Desh.

9
00:00:35,360 --> 00:00:37,640
See, that will create a new archive.

10
00:00:37,710 --> 00:00:40,350
Create a next option will be file.

11
00:00:40,590 --> 00:00:45,030
It means that I want to create the archive inside of the new file.

12
00:00:45,570 --> 00:00:47,760
And next, there will be name on this file.

13
00:00:47,790 --> 00:00:49,140
And let's give it a name.

14
00:00:49,370 --> 00:00:50,550
Archive Dot Tom.

15
00:00:51,300 --> 00:00:57,180
And next, the I'll specify which files and folders I want to put into this file.

16
00:00:57,730 --> 00:01:01,400
And let's suppose that they want to put the entire home directory here.

17
00:01:01,440 --> 00:01:07,050
I could use eyes or DOT because, no, I am currently located in this home directory or I could use

18
00:01:07,170 --> 00:01:08,400
deal the sign like so.

19
00:01:08,610 --> 00:01:12,360
That also represents home directory for this particular user.

20
00:01:12,940 --> 00:01:15,130
All right, let's quit archive using Sage.

21
00:01:15,140 --> 00:01:16,260
Come on here.

22
00:01:16,320 --> 00:01:19,210
I see some informational messages from a title deal.

23
00:01:19,710 --> 00:01:24,540
That means that it has removed leading slashers from member names, from files and folders.

24
00:01:24,900 --> 00:01:31,450
And also it does mean that it has not put into archive newly created file archive dottore.

25
00:01:31,830 --> 00:01:37,170
And this file was created actually in a home directory, Thrillist and afterwords those contents of

26
00:01:37,170 --> 00:01:39,820
home directory were placed inside of this archive.

27
00:01:40,260 --> 00:01:43,320
But this archive itself was not placed into itself.

28
00:01:43,560 --> 00:01:44,970
That is the meaning of this warrant.

29
00:01:45,330 --> 00:01:45,690
All right.

30
00:01:45,930 --> 00:01:48,810
Let's not list files and folders here in the home directory.

31
00:01:48,990 --> 00:01:52,630
And now I see newly created file archive dottore.

32
00:01:53,010 --> 00:01:54,480
And notice its size.

33
00:01:54,780 --> 00:01:57,330
Its size is around 400 kilobytes.

34
00:01:57,870 --> 00:01:58,710
I could add here.

35
00:01:58,740 --> 00:01:59,480
Human option.

36
00:01:59,550 --> 00:02:05,100
And I'll see that the size of archive of our file is a three hundred eighty kilobytes.

37
00:02:05,850 --> 00:02:06,240
All right.

38
00:02:06,630 --> 00:02:09,150
Let's not list the contents of this archive.

39
00:02:09,389 --> 00:02:11,650
For that, we could use additional option deep.

40
00:02:11,950 --> 00:02:12,450
Let's do that.

41
00:02:13,270 --> 00:02:13,500
DA.

42
00:02:14,190 --> 00:02:15,590
This deem list, right?

43
00:02:15,680 --> 00:02:19,800
Only this option and here will be the name of the archive archive Totaro.

44
00:02:20,060 --> 00:02:22,220
I could use ULDA complete and press enter.

45
00:02:22,730 --> 00:02:28,080
And now you see that the DA has refused to read archive contents from the terminal.

46
00:02:28,700 --> 00:02:34,270
And that means that without an option, it will dry through its contents from the terminal and we can

47
00:02:34,270 --> 00:02:38,470
load supplied any contents inside of the terminal by SDD in this way.

48
00:02:38,660 --> 00:02:43,220
We need to add here F option that will read contents from the file.

49
00:02:43,910 --> 00:02:45,490
Let me add this option.

50
00:02:45,950 --> 00:02:51,410
This D and F, and now I see contents of this archive.

51
00:02:51,980 --> 00:02:59,630
It contains a bunch of Özer folders and files that the way I located in a folder route folder is home

52
00:02:59,630 --> 00:03:01,430
directory for road user.

53
00:03:02,240 --> 00:03:02,580
All right.

54
00:03:02,790 --> 00:03:04,820
That's the contents of this archive.

55
00:03:05,750 --> 00:03:07,880
Let's again, at least the files and folders here.

56
00:03:08,210 --> 00:03:13,940
And note, let me demonstrate you how to create the compressed archive from this archive.

57
00:03:14,510 --> 00:03:16,450
For that, we could use additional duty.

58
00:03:16,640 --> 00:03:17,030
J.

59
00:03:17,130 --> 00:03:19,990
Zeeb, let's simply type J Zip.

60
00:03:20,480 --> 00:03:23,120
And here next, let's type name of the file.

61
00:03:23,210 --> 00:03:24,530
We want to compress.

62
00:03:24,920 --> 00:03:27,260
Actually you could compress any file you want.

63
00:03:27,470 --> 00:03:35,060
Not necessarily archived file, but let's compress archive, the TR press, Panter and Leslie's files

64
00:03:35,060 --> 00:03:35,830
and folders now.

65
00:03:37,040 --> 00:03:38,320
And no I see it here.

66
00:03:38,360 --> 00:03:39,350
File archive.

67
00:03:39,440 --> 00:03:40,810
Dot, dot, dot jazy.

68
00:03:41,390 --> 00:03:44,880
And I don't see previous file named archive of the Tower.

69
00:03:45,320 --> 00:03:52,970
And that means that Jazy utility actually replaces a file using compressed file with extension dot jazy.

70
00:03:53,630 --> 00:04:00,410
And notice the size of this compressed file is much, much smaller than the size of the archive.

71
00:04:00,830 --> 00:04:07,190
Raqib that the size of the toric I was three hundred eighty kilobytes and the size of this archive is

72
00:04:07,250 --> 00:04:09,020
just 80 kilobytes.

73
00:04:10,040 --> 00:04:10,400
All right.

74
00:04:10,680 --> 00:04:13,830
That's how we were able to compress the archive.

75
00:04:13,890 --> 00:04:18,800
Created using document, altered as possible to create the compressed archive.

76
00:04:18,860 --> 00:04:20,779
Just using a single document.

77
00:04:21,060 --> 00:04:21,540
Let's do it.

78
00:04:21,860 --> 00:04:23,630
Let's remove this file.

79
00:04:23,810 --> 00:04:26,740
Our archive WGRZ.

80
00:04:27,290 --> 00:04:32,770
And now let's again perform same action, compress all files and folders in the home directory using

81
00:04:32,810 --> 00:04:33,470
a document.

82
00:04:33,530 --> 00:04:38,450
But using additional zie option that will also create compressed archive.

83
00:04:39,050 --> 00:04:39,790
Let's clear terminal.

84
00:04:39,950 --> 00:04:40,990
And here we'll be Tom.

85
00:04:41,420 --> 00:04:42,620
Next, let's add option.

86
00:04:42,710 --> 00:04:46,610
Fourth option will be C that extends for create create an archive.

87
00:04:46,970 --> 00:04:48,320
Next option will be Z..

88
00:04:48,410 --> 00:04:49,970
That stands for compression.

89
00:04:50,030 --> 00:04:51,410
Great compressed archive.

90
00:04:51,740 --> 00:04:53,390
And last option will be file.

91
00:04:53,540 --> 00:04:55,490
Create a file with archive.

92
00:04:56,360 --> 00:04:58,470
Next will be a path to archive.

93
00:04:58,730 --> 00:05:04,970
And let's place this file outside of the home directory for this user and I'll place it to one level

94
00:05:05,030 --> 00:05:05,300
up.

95
00:05:05,570 --> 00:05:07,970
And the name of the file will be archive.

96
00:05:08,030 --> 00:05:09,610
Dot, dot, dot, jazy.

97
00:05:10,150 --> 00:05:15,230
I am placing this archive outside of the home directory for this user because no, I will actually compress

98
00:05:15,230 --> 00:05:18,110
home directory and I want to avoid any mistakes.

99
00:05:18,680 --> 00:05:21,320
Next will be path to home directory for this user.

100
00:05:21,350 --> 00:05:22,660
And let's again use deal.

101
00:05:22,670 --> 00:05:23,240
They'll sign.

102
00:05:23,450 --> 00:05:29,390
Or I could simply use DOT here because no, I'm currently located in a home directory for this user.

103
00:05:29,730 --> 00:05:32,360
All right, let's not press enter and see what will happen.

104
00:05:33,080 --> 00:05:34,100
And it seems that the No.

105
00:05:34,110 --> 00:05:37,240
Ahamad got any errors and the file seems to be great.

106
00:05:37,700 --> 00:05:44,030
And in order to view it, the let me go one level up to parent folder and the parent folder is actually

107
00:05:44,030 --> 00:05:44,810
a root directory.

108
00:05:45,080 --> 00:05:48,180
And here, let me at least files and folders allows us l.

109
00:05:48,530 --> 00:05:51,530
And here somewhere at the top should be this archive.

110
00:05:51,660 --> 00:05:53,360
Dot, dot, dot, jazy file.

111
00:05:53,450 --> 00:05:54,620
And yes, here it is.

112
00:05:55,010 --> 00:06:00,160
That's how we were able to create the compressed archive using just single Takuma.

113
00:06:01,040 --> 00:06:01,400
All right.

114
00:06:01,790 --> 00:06:07,250
Now let me show you how we are able to extract contents from this archive so that we could, again,

115
00:06:07,310 --> 00:06:09,390
use just a single comment.

116
00:06:10,040 --> 00:06:14,510
And let me read your folder inside of the home directory for this user.

117
00:06:14,810 --> 00:06:16,250
Let's see the home directory.

118
00:06:16,610 --> 00:06:18,420
And here, let's create a new folder.

119
00:06:18,560 --> 00:06:20,030
Let's say DMP.

120
00:06:20,570 --> 00:06:22,800
And let me see to this GMP folder.

121
00:06:22,880 --> 00:06:29,090
And here inside of this folder, I'll use TR command was following options ex extract.

122
00:06:29,420 --> 00:06:32,040
Next, let's add the option verbose.

123
00:06:32,120 --> 00:06:36,800
That will actually bring the contents of this archive while extraction will be in progress.

124
00:06:37,250 --> 00:06:39,440
And the next option will be Zeine.

125
00:06:39,680 --> 00:06:45,830
That stands for Uncompressed because we will uncompressed first and afterwards extract contents from

126
00:06:45,830 --> 00:06:46,920
the compressed archive.

127
00:06:47,360 --> 00:06:50,410
And final option will be F that stands for file.

128
00:06:51,140 --> 00:06:53,150
Next will be a path to archive.

129
00:06:53,210 --> 00:06:54,170
And let's use here.

130
00:06:54,200 --> 00:06:55,000
Absolute path.

131
00:06:55,340 --> 00:06:57,940
That archive is located in root folder.

132
00:06:58,100 --> 00:06:58,720
Here will be.

133
00:06:58,840 --> 00:06:59,630
Forward slash.

134
00:06:59,750 --> 00:07:01,520
And next will be the name of the archive.

135
00:07:01,580 --> 00:07:02,330
Lets you step.

136
00:07:02,570 --> 00:07:03,020
Archive.

137
00:07:03,080 --> 00:07:04,430
But the jazy.

138
00:07:05,080 --> 00:07:05,750
And that's all.

139
00:07:06,050 --> 00:07:11,000
Let's press enter and you'll see a bunch of files that were extracted into account.

140
00:07:11,060 --> 00:07:11,930
DMP folder.

141
00:07:12,290 --> 00:07:14,120
Let's at least files and folders here.

142
00:07:14,390 --> 00:07:18,260
And here I see actually contents that were extracted from the archive.

143
00:07:18,730 --> 00:07:22,250
This is how you're able to extract contents from the compressed archive.

144
00:07:22,490 --> 00:07:24,620
Using just single document.

145
00:07:25,490 --> 00:07:25,880
All right.

146
00:07:26,200 --> 00:07:28,000
That's all for compression and uncompressed.

147
00:07:28,640 --> 00:07:30,810
And that is actually very easy using document.

148
00:07:31,400 --> 00:07:35,570
And the most popular options I have actually shown you in this lecture, this awful.

149
00:07:35,590 --> 00:07:36,070
This lecture.

150
00:07:36,130 --> 00:07:37,270
And the next let's move on.

151
00:07:37,370 --> 00:07:43,220
And in the next one, I'll explain you how to sort files and hold to sort gauntlets of files.

152
00:07:43,460 --> 00:07:44,270
I'll see you next.

153
00:07:44,350 --> 00:07:44,720
Bye bye.

