WEBVTT

00:00.970 --> 00:08.270
Compressing and archiving hecklers often need to download and install new software, as well as send

00:08.290 --> 00:11.050
and download multiple scripts and the large files.

00:11.860 --> 00:18.100
These tasks are easier if they these files are compressed and combined into a single file.

00:18.520 --> 00:24.940
If you come from the Windows Phone, you'll probably recognize the concepts concept from the zip format,

00:25.690 --> 00:32.200
which combines and compresses files to the to make them similar for transferring over the internet or

00:32.200 --> 00:33.220
removable media.

00:33.730 --> 00:40.330
So there are many ways to do this in Linux, and we look at five of the most common tools for doing

00:40.660 --> 00:41.770
so in this nature.

00:42.340 --> 00:49.510
So we'll also look at the deeded command, which allows you to copy entire drives, including collected

00:49.510 --> 00:53.500
files onto its drivers, natural drives and drivers.

00:54.070 --> 00:55.510
So what is compression?

00:56.050 --> 01:00.850
So the interesting subject of compression called feel an entire course by itself.

01:01.180 --> 01:05.470
But for this course, you only need a rudimentary understanding of the process.

01:06.460 --> 01:13.300
The compression, as the name implies, makes data smaller, thereby requiring less storage capacity

01:13.300 --> 01:18.430
and making the data easier to transmit for your purposes as beginning kicker.

01:18.520 --> 01:24.520
It was selfish to categorize compression as a either loosey or lossless.

01:24.910 --> 01:32.170
So loosely compression is very effective in reducing the size of files, but the integrity of the information

01:32.170 --> 01:32.710
is lost.

01:33.130 --> 01:37.720
So in other words, the file after compression is not exactly the same as the original.

01:38.170 --> 01:45.520
So this type of compression works great for graphics, video and audio files, where a small difference

01:45.520 --> 01:56.530
in the files hardly noticeable like an input three in before and and jpg AGP age are also all loosely

01:56.530 --> 01:58.900
compression compression algorithms.

01:59.560 --> 02:07.960
So if a pixel in a pinned file or a single note in a puppetry file is changed, your E or EHR is likely

02:07.960 --> 02:08.980
to notice a difference.

02:09.740 --> 02:17.320
Of course, music efficiencies will say that they can definitely tell the difference between an empathy

02:17.320 --> 02:19.710
and uncompressed FLAC file.

02:20.200 --> 02:26.470
So this strength of losing commercials, ah um, its efficiency and effectiveness.

02:26.470 --> 02:29.020
But the compression radio is very high.

02:29.050 --> 02:34.600
The meaning that the uh, resulting file is significantly smaller than the original.

02:35.080 --> 02:42.450
However, elusive compression is unacceptable when you are sending files or software and data integrity

02:42.460 --> 02:42.970
support.

02:43.300 --> 02:48.820
For example, if you're sending a script or a document, the integrity of the original file must be

02:48.820 --> 02:50.740
retained when it is compressed.

02:51.190 --> 02:56.980
So this letter focused on the lossless type of compression, which is available for a number of utilities

02:56.980 --> 02:57.850
and algorithms.

02:58.330 --> 03:05.140
Unfortunately, this compression is not as efficient as oluchi compression as you might imagine.

03:05.170 --> 03:11.290
Uh, for but for D.A. integrity is often far more important than the compression ratio.

03:12.940 --> 03:14.700
To bring us together.

03:16.330 --> 03:24.340
So usually the first thing you do when competition crawls is to combine them into an archive.

03:24.520 --> 03:30.630
In most cases when archiving files, you will use a task command here.

03:31.750 --> 03:32.260
So.

03:36.110 --> 03:39.320
And it's open here, so you will use TerraCom month.

03:39.530 --> 03:42.380
So Tash stands at heart here.

03:42.590 --> 03:46.660
So Tash stands save Archi here.

03:47.630 --> 03:48.200
So.

03:49.350 --> 03:55.810
A reference for the prehistoric days of computing, when systems used tape to store data is mysterious.

03:56.230 --> 04:03.800
So the Turkoman creates a single file from many files, which is then referred to as an archive terrifying

04:03.820 --> 04:04.930
or terrible.

04:05.620 --> 04:12.160
For instance, you say you had three scripts files like the here, for example.

04:12.760 --> 04:13.300
Um?

04:15.520 --> 04:16.700
Torch here.

04:19.010 --> 04:19.860
How chair.

04:22.250 --> 04:34.010
For example, pick beans, one that see her share pouch, take beans, one tool that python here take

04:34.490 --> 04:36.680
and actually touch.

04:37.370 --> 04:43.010
Take beans at three that year, for example out you.

04:45.670 --> 04:48.360
As you can see, we files, but they are important for us.

04:49.530 --> 04:49.920
So.

04:51.760 --> 04:59.230
If you never get a director that holds them know and perform and a long listing, you can clearly see

04:59.230 --> 05:05.470
the files and details you'd expect so including the size of the files here, as you can see here.

05:08.480 --> 05:09.560
It was a.

05:11.130 --> 05:16.890
You know, actually, you know, this is a page, so as you can see, we've created three four and it's

05:16.890 --> 05:25.230
actually copied them to folders here and this change it with our text editor.

05:25.890 --> 05:29.930
Actually, it's, uh, example here.

05:30.610 --> 05:35.910
And let's cope with this here and here.

05:35.940 --> 05:39.050
It's open here and then, uh, put inside them themselves.

05:39.450 --> 05:43.260
Something here, uh, just an example.

05:43.270 --> 05:45.420
See hash file here.

05:47.750 --> 05:50.520
Here, as you can see, we creative loving it.

05:53.020 --> 05:53.380
Here.

05:54.830 --> 05:56.900
And let's open this as well.

05:57.140 --> 05:57.710
Um.

05:59.060 --> 06:01.250
Uh, my phone.

06:01.490 --> 06:02.540
Wow, here.

06:05.060 --> 06:05.510
Here.

06:13.870 --> 06:26.120
So you can see here and let's open here and, uh, just start out while some clients use this or say,

06:26.960 --> 06:34.850
uh, compliant comp. See scripts here or programs their homes their.

06:44.840 --> 06:45.060
Yeah.

06:46.250 --> 06:47.480
It's uh.

06:49.200 --> 06:55.680
As you can see here, we have a new example find here.

06:56.100 --> 06:58.080
So I see the example here.

06:59.110 --> 07:04.270
And less and less in here, as you can see here, there is a different ones.

07:04.930 --> 07:12.610
So let's say you want to send all three of these files to another hacker you are working with on a project

07:13.090 --> 07:23.790
so you can combine them and create a single shot archive file using Takam month here to see who we have.

07:24.410 --> 07:29.980
So we are entering the name of our file here.

07:30.280 --> 07:37.630
Take this project that tower here and we are assigning our files here without coming here.

07:38.020 --> 07:40.150
So no first come here.

07:40.390 --> 07:41.380
Take me one.

07:41.380 --> 07:49.180
See how much take means three out here and take bins to Python here.

07:55.170 --> 07:59.460
As you can see here, we compiled we create a tar file.

07:59.730 --> 08:03.750
So let's break down this command to a better understanding.

08:04.440 --> 08:11.360
So the archiving command is a task and we are using it here with three options, as you can see here.

08:12.860 --> 08:13.280
So.

08:15.730 --> 08:26.320
The sea option here means Crete v Um, which stands for rebels and is optional, you can.

08:26.770 --> 08:36.130
It's not mandatory here, so it's for outputting these files, which is created in tar files and if.

08:36.130 --> 08:37.120
Com month here.

08:38.480 --> 08:41.690
Um, means write the following file here.

08:43.640 --> 08:47.210
So they're the last option will also work for reading from files.

08:47.440 --> 08:54.980
And then we give the new archive the time the file name you want to create from three scripts here.

08:54.980 --> 09:00.500
As you can see here, we named it the take bins project here Tosh.

09:01.160 --> 09:11.240
Of course, in the fall, this command will take all three files here and create a single file so he

09:11.240 --> 09:15.590
can hear bins predictions project tar out of them.

09:15.590 --> 09:22.640
So when you do another long listing of the directory, you will see that it also contains a neutron

09:22.640 --> 09:23.350
file here.

09:24.910 --> 09:25.870
So you can see here.

09:27.060 --> 09:30.330
So not the size of the tar ball is here.

09:30.780 --> 09:32.520
Uh, thirteen.

09:32.730 --> 09:36.600
Uh, three nine three nine nine three eight six zero here.

09:37.410 --> 09:37.920
So.

09:39.300 --> 09:43.850
When the three of us are archived 30 years of significant overhead to perform this operation.

09:44.210 --> 09:50.120
Whereas a sum of us before archiving careless, calculated, uh, calculated.

09:52.010 --> 09:55.520
Here, so we will calculate this train was here.

09:56.000 --> 09:57.290
Uh, let's see it.

09:59.390 --> 10:00.800
The first take this one.

10:02.390 --> 10:04.700
See how Shear Plus.

10:06.920 --> 10:12.050
Uh, three one, it makes three here plus.

10:13.150 --> 10:18.100
Lastly, is around five, three, five seven.

10:19.300 --> 10:19.960
Three.

10:21.520 --> 10:22.810
Zero four.

10:24.240 --> 10:31.410
As you can see here, our time for is three, nine, three nine, four six here.

10:31.950 --> 10:40.530
So but in here three nine three three nine nine three six zero so this tarball, uh, here actually.

10:40.950 --> 10:47.310
So this is a greater than so this is greater than our total of some of this fires.

10:48.330 --> 10:48.750
So.

10:50.230 --> 10:54.580
In other words, the archiving process has added almost.

10:59.170 --> 11:01.270
Well, it's minus here.

11:02.880 --> 11:03.190
Or.

11:06.090 --> 11:06.510
Here.

11:09.110 --> 11:09.830
Minus.

11:11.120 --> 11:14.510
Uh, three, nine, nine, three, six zero here.

11:15.350 --> 11:22.460
So as you can see in the process is on the almost, uh, five thousand four hundred, uh, fourteen

11:22.790 --> 11:23.660
by storing it.

11:24.350 --> 11:30.290
So out of this horrid canvassing inefficient with small files, it becomes less and less significant

11:30.290 --> 11:32.870
with a larger and larger fires.

11:33.170 --> 11:33.650
So we can.

11:33.650 --> 11:40.070
This will reduce fires from the tarball without extracting them by using the tower command within them

11:40.860 --> 11:42.190
to on the list.

11:42.760 --> 11:49.640
Switch here Taj T we fear here and take things project here.

11:50.150 --> 11:52.100
Actually, let's see how many minutes we have.

11:52.100 --> 11:52.330
Yes.

11:53.060 --> 11:54.830
So can you see it's actually yes.

11:55.430 --> 11:55.760
So.

11:56.750 --> 12:04.170
Here we see our three audio files and their original sizes, so you can then extracted his files from

12:04.170 --> 12:10.820
the Kamaal using Takam, which within the UK's extracts image, as shown here, for example, Taj x

12:10.820 --> 12:12.680
WiFi here.

12:14.660 --> 12:17.420
X x, we fear here.

12:17.570 --> 12:19.730
Let's first A. L. A. Here.

12:20.060 --> 12:29.980
So now task for comprehensive case files here takes me three here and thickens project to cancer.

12:29.990 --> 12:31.790
We expect that these files see it.

12:36.330 --> 12:36.810
Here.

12:37.760 --> 12:39.290
So we expected this for us.

12:39.620 --> 12:47.900
So it's the latest finds there, and I will say that here, as you can see here, we extracted these

12:47.900 --> 12:51.920
files from Take this project a terrifying thing and as you can see here.

12:52.890 --> 12:54.780
So here, no.

12:55.920 --> 13:03.690
Because you are still using the vene, uh, sewage it is come on the show, which files are being extracted

13:03.690 --> 13:04.820
in the output here.

13:05.610 --> 13:12.450
If you want to extract the files and to do so slice slightly meaning without showing any output, you

13:12.450 --> 13:18.750
can simply remove these V, which has been, uh, available for comment and some share.

13:19.280 --> 13:20.070
So.

13:21.270 --> 13:30.660
Here, excessive and nothing outward, but our fans still expect that soon the files have been extracted

13:30.660 --> 13:36.720
into the current directory, you can do a long listing on a die on the directory to double check so

13:37.010 --> 13:43.200
that by default, if an extracted file under the excess tar will remove the existing file and replace

13:43.200 --> 13:44.730
it with the extract file here.

13:47.500 --> 13:52.870
So in later lecture, we will uh, I will show you, uh, compressing the fire, so I'm waiting you

13:52.870 --> 13:53.770
in there to lecture.
