Hello, everyone.
In this demo, I'll show you how to create temporary files and directories on your system using the
system, the temp files.
So in many cases, you may want to create temporarily files on your system that you do not want to keep
in the long run.
These can include application look files or pictures of your ex or whatever you would like not to keep
for a long time.
Okay, so how can you do that?
The first step is to make sure that the Temple Mount service is active and up and running.
And you can see here attempt at Mount has to be active and running.
All right.
The second step is to go to the ETSI temp files, the directory, and to create a configuration file
for your temporary files so you can call it whatever you want.
I'm gonna call it temp dot com.
And here you can include all the directories and the files that you temporarily want to create.
So what I'm gonna do here, I'm gonna create a new directory in our blog called Darwan.
I'm gonna give it full permissions.
It will be owned by the user route and also the group route as well.
I'm gonna create another directory.
It will be called Directory to Diet to in the same place, Inverloch.
I'll give it full permissions as well.
And the user route will be the owner as well as the group route will also be the owner.
And I will give it the age parameter of 30 seconds.
So you might be wondering what the age parameter of 30 seconds here mean.
This simply means that any file in the diary to the rectory can be cleaned up and removed after 30 seconds
of creation.
When I invoke the clean command, as you as you will see later in this video.
All right.
Now I'm done creating my temporary directors director is here.
What I'm gonna do, I'm gonna create a temporarily file in dire one.
So I'm gonna go here and create one and then I'll give it full permissions.
Oh, makes didn't the owner and the user owner and the group owner as well.
All right.
Now, the last thing I will do is I want to remove the dire one directly when I invoke the remove command,
as you you'll see later.
And actually, I have to start with the F one fire because you cannot remove the directory unless it's
empty.
So I'm going to use that and then I'm going to remove the directory.
One is tell that one itself.
All right.
So in summary, here's what's going to happen.
Whenever I invoke the system, the term files create command.
It will create three different things.
It will create the Directory one and directly to Inverloch.
It will also create F one inside directory one letter.
I would invoke the remove command, which will do two different things as well.
It will remove the F one file and then it will remove a dire one as well.
All right.
And finally, I'm going to invoke the clean command, which will remove any file that is older than
30 seconds in dire, too.
OK.
I know that's a mouthful, but bear with me.
I'll explain everything in detail.
OK.
So I'm gonna save an exit.
I'll go to the VAR log directory.
I'll do a simple Ellis command.
And you can see nothing appears here for DYAR one or two.
Now fire run the command system.
Dede asked him files that does create a hit enter.
And then I run Ellis and they can see the magic happened.
So I have to directress created which is dire one.
And there are two inside Dyar one.
There is the EF1 file that also specified in my attempt of Konsta configuration file.
Amazing.
Now what if I run the command system, the temp files that does remove hit enter Ellis actually go back
here.
As you can see when I run the command system did as temp files does does remove it actually removed
the file EF1 inside Dyar one and it also removed the directory.
Dyar one all by itself.
Okay.
Now the only remaining thing I have right here in front of you is the dial to directory.
So I'm gonna go inside it.
I'll create simple files here.
I'm gonna call it F1, F2, F3 and F4.
You can do a simple Ellers and then I'm gonna invoke the command system data files.
That's dash clean, Ellis.
Oh, nothing has been cleaned.
Why is that?
Remember, the age parameters specified were 30 seconds.
So I can not remove the files if they are not older than 30 seconds.
So let's run the sleep.
30 second command.
So after the 30 seconds are done, I'll be able to invoke the same command.
The system needs ten files.
That's just clean and it will remove all the files inside of there.
Two or at least I hope so.
So let's just wait for a bit here.
I know it's taking some time, but you know what?
It's totally worth it.
At the end of the day.
OK.
So the 30 second are done.
Let me clear this messy screen.
Let me see Ellis.
OK.
The files are still there.
But with one run of this powerful command, everything is cleaned up.
You have to be honest with yourself.
This is total magic.
You're right.
Okay, so I'm going to clean the screen.
Go back and forth.
That's it.
Now, if you want to know more about the system, the Dustin files, you can visit the main page of
system data and files.
It will show you all the different commands you can run for.
System.
The Dustin file.
So they create command.
As you can see here, it's mentioned the clean command, the remove command.
And actually, there are many more commands as well.
But it only covered the most important ones that you are going to use on a frequent basis.
OK.
You can also visit the main page of temp files, the D.
And this will actually show you how to write the configuration files for your temporary files.
All right.
So it's actually very useful.
It will explain all the different parameters for the temporary files here.
And you can see them the mode to the permissions, the other rights group and the age, as I just shown
you in earlier in the video.
OK.
And so that's that's it for this video.
I hope you guys enjoyed it.
Char.