Compressing and archiving hecklers often need to download and install new software, as well as send
and download multiple scripts and the large files.
These tasks are easier if they these files are compressed and combined into a single file.
If you come from the Windows Phone, you'll probably recognize the concepts concept from the zip format,
which combines and compresses files to the to make them similar for transferring over the internet or
removable media.
So there are many ways to do this in Linux, and we look at five of the most common tools for doing
so in this nature.
So we'll also look at the deeded command, which allows you to copy entire drives, including collected
files onto its drivers, natural drives and drivers.
So what is compression?
So the interesting subject of compression called feel an entire course by itself.
But for this course, you only need a rudimentary understanding of the process.
The compression, as the name implies, makes data smaller, thereby requiring less storage capacity
and making the data easier to transmit for your purposes as beginning kicker.
It was selfish to categorize compression as a either loosey or lossless.
So loosely compression is very effective in reducing the size of files, but the integrity of the information
is lost.
So in other words, the file after compression is not exactly the same as the original.
So this type of compression works great for graphics, video and audio files, where a small difference
in the files hardly noticeable like an input three in before and and jpg AGP age are also all loosely
compression compression algorithms.
So if a pixel in a pinned file or a single note in a puppetry file is changed, your E or EHR is likely
to notice a difference.
Of course, music efficiencies will say that they can definitely tell the difference between an empathy
and uncompressed FLAC file.
So this strength of losing commercials, ah um, its efficiency and effectiveness.
But the compression radio is very high.
The meaning that the uh, resulting file is significantly smaller than the original.
However, elusive compression is unacceptable when you are sending files or software and data integrity
support.
For example, if you're sending a script or a document, the integrity of the original file must be
retained when it is compressed.
So this letter focused on the lossless type of compression, which is available for a number of utilities
and algorithms.
Unfortunately, this compression is not as efficient as oluchi compression as you might imagine.
Uh, for but for D.A. integrity is often far more important than the compression ratio.
To bring us together.
So usually the first thing you do when competition crawls is to combine them into an archive.
In most cases when archiving files, you will use a task command here.
So.
And it's open here, so you will use TerraCom month.
So Tash stands at heart here.
So Tash stands save Archi here.
So.
A reference for the prehistoric days of computing, when systems used tape to store data is mysterious.
So the Turkoman creates a single file from many files, which is then referred to as an archive terrifying
or terrible.
For instance, you say you had three scripts files like the here, for example.
Um?
Torch here.
How chair.
For example, pick beans, one that see her share pouch, take beans, one tool that python here take
and actually touch.
Take beans at three that year, for example out you.
As you can see, we files, but they are important for us.
So.
If you never get a director that holds them know and perform and a long listing, you can clearly see
the files and details you'd expect so including the size of the files here, as you can see here.
It was a.
You know, actually, you know, this is a page, so as you can see, we've created three four and it's
actually copied them to folders here and this change it with our text editor.
Actually, it's, uh, example here.
And let's cope with this here and here.
It's open here and then, uh, put inside them themselves.
Something here, uh, just an example.
See hash file here.
Here, as you can see, we creative loving it.
Here.
And let's open this as well.
Um.
Uh, my phone.
Wow, here.
Here.
So you can see here and let's open here and, uh, just start out while some clients use this or say,
uh, compliant comp. See scripts here or programs their homes their.
Yeah.
It's uh.
As you can see here, we have a new example find here.
So I see the example here.
And less and less in here, as you can see here, there is a different ones.
So let's say you want to send all three of these files to another hacker you are working with on a project
so you can combine them and create a single shot archive file using Takam month here to see who we have.
So we are entering the name of our file here.
Take this project that tower here and we are assigning our files here without coming here.
So no first come here.
Take me one.
See how much take means three out here and take bins to Python here.
As you can see here, we compiled we create a tar file.
So let's break down this command to a better understanding.
So the archiving command is a task and we are using it here with three options, as you can see here.
So.
The sea option here means Crete v Um, which stands for rebels and is optional, you can.
It's not mandatory here, so it's for outputting these files, which is created in tar files and if.
Com month here.
Um, means write the following file here.
So they're the last option will also work for reading from files.
And then we give the new archive the time the file name you want to create from three scripts here.
As you can see here, we named it the take bins project here Tosh.
Of course, in the fall, this command will take all three files here and create a single file so he
can hear bins predictions project tar out of them.
So when you do another long listing of the directory, you will see that it also contains a neutron
file here.
So you can see here.
So not the size of the tar ball is here.
Uh, thirteen.
Uh, three nine three nine nine three eight six zero here.
So.
When the three of us are archived 30 years of significant overhead to perform this operation.
Whereas a sum of us before archiving careless, calculated, uh, calculated.
Here, so we will calculate this train was here.
Uh, let's see it.
The first take this one.
See how Shear Plus.
Uh, three one, it makes three here plus.
Lastly, is around five, three, five seven.
Three.
Zero four.
As you can see here, our time for is three, nine, three nine, four six here.
So but in here three nine three three nine nine three six zero so this tarball, uh, here actually.
So this is a greater than so this is greater than our total of some of this fires.
So.
In other words, the archiving process has added almost.
Well, it's minus here.
Or.
Here.
Minus.
Uh, three, nine, nine, three, six zero here.
So as you can see in the process is on the almost, uh, five thousand four hundred, uh, fourteen
by storing it.
So out of this horrid canvassing inefficient with small files, it becomes less and less significant
with a larger and larger fires.
So we can.
This will reduce fires from the tarball without extracting them by using the tower command within them
to on the list.
Switch here Taj T we fear here and take things project here.
Actually, let's see how many minutes we have.
Yes.
So can you see it's actually yes.
So.
Here we see our three audio files and their original sizes, so you can then extracted his files from
the Kamaal using Takam, which within the UK's extracts image, as shown here, for example, Taj x
WiFi here.
X x, we fear here.
Let's first A. L. A. Here.
So now task for comprehensive case files here takes me three here and thickens project to cancer.
We expect that these files see it.
Here.
So we expected this for us.
So it's the latest finds there, and I will say that here, as you can see here, we extracted these
files from Take this project a terrifying thing and as you can see here.
So here, no.
Because you are still using the vene, uh, sewage it is come on the show, which files are being extracted
in the output here.
If you want to extract the files and to do so slice slightly meaning without showing any output, you
can simply remove these V, which has been, uh, available for comment and some share.
So.
Here, excessive and nothing outward, but our fans still expect that soon the files have been extracted
into the current directory, you can do a long listing on a die on the directory to double check so
that by default, if an extracted file under the excess tar will remove the existing file and replace
it with the extract file here.
So in later lecture, we will uh, I will show you, uh, compressing the fire, so I'm waiting you
in there to lecture.