All right.
Let's not try to do it on practice and let's agree to archive that will contain all files and folders
located in a home directory for this user.
I am currently inside of this home directory, and if I list files and folders here, I should see some
files and a single folder that I have created over the course of the previous sections.
Create archive that will contain all those files and folders.
All right, Tom.
And next, I need to use Option Desh.
See, that will create a new archive.
Create a next option will be file.
It means that I want to create the archive inside of the new file.
And next, there will be name on this file.
And let's give it a name.
Archive Dot Tom.
And next, the I'll specify which files and folders I want to put into this file.
And let's suppose that they want to put the entire home directory here.
I could use eyes or DOT because, no, I am currently located in this home directory or I could use
deal the sign like so.
That also represents home directory for this particular user.
All right, let's quit archive using Sage.
Come on here.
I see some informational messages from a title deal.
That means that it has removed leading slashers from member names, from files and folders.
And also it does mean that it has not put into archive newly created file archive dottore.
And this file was created actually in a home directory, Thrillist and afterwords those contents of
home directory were placed inside of this archive.
But this archive itself was not placed into itself.
That is the meaning of this warrant.
All right.
Let's not list files and folders here in the home directory.
And now I see newly created file archive dottore.
And notice its size.
Its size is around 400 kilobytes.
I could add here.
Human option.
And I'll see that the size of archive of our file is a three hundred eighty kilobytes.
All right.
Let's not list the contents of this archive.
For that, we could use additional option deep.
Let's do that.
DA.
This deem list, right?
Only this option and here will be the name of the archive archive Totaro.
I could use ULDA complete and press enter.
And now you see that the DA has refused to read archive contents from the terminal.
And that means that without an option, it will dry through its contents from the terminal and we can
load supplied any contents inside of the terminal by SDD in this way.
We need to add here F option that will read contents from the file.
Let me add this option.
This D and F, and now I see contents of this archive.
It contains a bunch of Özer folders and files that the way I located in a folder route folder is home
directory for road user.
All right.
That's the contents of this archive.
Let's again, at least the files and folders here.
And note, let me demonstrate you how to create the compressed archive from this archive.
For that, we could use additional duty.
J.
Zeeb, let's simply type J Zip.
And here next, let's type name of the file.
We want to compress.
Actually you could compress any file you want.
Not necessarily archived file, but let's compress archive, the TR press, Panter and Leslie's files
and folders now.
And no I see it here.
File archive.
Dot, dot, dot jazy.
And I don't see previous file named archive of the Tower.
And that means that Jazy utility actually replaces a file using compressed file with extension dot jazy.
And notice the size of this compressed file is much, much smaller than the size of the archive.
Raqib that the size of the toric I was three hundred eighty kilobytes and the size of this archive is
just 80 kilobytes.
All right.
That's how we were able to compress the archive.
Created using document, altered as possible to create the compressed archive.
Just using a single document.
Let's do it.
Let's remove this file.
Our archive WGRZ.
And now let's again perform same action, compress all files and folders in the home directory using
a document.
But using additional zie option that will also create compressed archive.
Let's clear terminal.
And here we'll be Tom.
Next, let's add option.
Fourth option will be C that extends for create create an archive.
Next option will be Z..
That stands for compression.
Great compressed archive.
And last option will be file.
Create a file with archive.
Next will be a path to archive.
And let's place this file outside of the home directory for this user and I'll place it to one level
up.
And the name of the file will be archive.
Dot, dot, dot, jazy.
I am placing this archive outside of the home directory for this user because no, I will actually compress
home directory and I want to avoid any mistakes.
Next will be path to home directory for this user.
And let's again use deal.
They'll sign.
Or I could simply use DOT here because no, I'm currently located in a home directory for this user.
All right, let's not press enter and see what will happen.
And it seems that the No.
Ahamad got any errors and the file seems to be great.
And in order to view it, the let me go one level up to parent folder and the parent folder is actually
a root directory.
And here, let me at least files and folders allows us l.
And here somewhere at the top should be this archive.
Dot, dot, dot, jazy file.
And yes, here it is.
That's how we were able to create the compressed archive using just single Takuma.
All right.
Now let me show you how we are able to extract contents from this archive so that we could, again,
use just a single comment.
And let me read your folder inside of the home directory for this user.
Let's see the home directory.
And here, let's create a new folder.
Let's say DMP.
And let me see to this GMP folder.
And here inside of this folder, I'll use TR command was following options ex extract.
Next, let's add the option verbose.
That will actually bring the contents of this archive while extraction will be in progress.
And the next option will be Zeine.
That stands for Uncompressed because we will uncompressed first and afterwards extract contents from
the compressed archive.
And final option will be F that stands for file.
Next will be a path to archive.
And let's use here.
Absolute path.
That archive is located in root folder.
Here will be.
Forward slash.
And next will be the name of the archive.
Lets you step.
Archive.
But the jazy.
And that's all.
Let's press enter and you'll see a bunch of files that were extracted into account.
DMP folder.
Let's at least files and folders here.
And here I see actually contents that were extracted from the archive.
This is how you're able to extract contents from the compressed archive.
Using just single document.
All right.
That's all for compression and uncompressed.
And that is actually very easy using document.
And the most popular options I have actually shown you in this lecture, this awful.
This lecture.
And the next let's move on.
And in the next one, I'll explain you how to sort files and hold to sort gauntlets of files.
I'll see you next.
Bye bye.