All right. So first part of this lab is to ensure that TMP files are cleaned up automatically.
So how does that work? Well, actually, pretty simple. Let's do a system CTL status on system
D, TMP files, and then you use your tab completion to see what is going on. We need the clean
dot timer, and we need the clean dot timer to be active. And look at that. It is active.
So nice thing about this is that really nothing has to be done. It's already taken care of.
Then we need to run a cron job that will issue the command touch TMP cron file five minutes
from now as user Linda. Five minutes from now, you need to know that in a cron job,
five minutes from now doesn't really work. What does work is you look at your clock,
and you are going to make a cron job accordingly. So I have 1 p.m. at the moment. Let's schedule
it for 1.03. That should be more than enough. So what I'm going to use is cron tab minus
E minus U Linda. And there I'm going to specify that at minute three of
all of time specifications, so every hour at the third minute, we are going to do what? Well,
we are going to run the command touch TMP cron file. And that should be doing it. And now it's
installing a new cron tab. So we should be good. And we still have about a minute and a half
remaining. And that is also a minute and a half. That means that I can schedule the job to power
off the system at a convenient time later today. So I would say at 20.00. And there we can see that
it will be executed tonight at 20 hours. And what am I going to do? I'm going to run power off.
And then control D that will schedule the job at 8.00 p.m. tonight. Well, where are we now?
We need to wait for one more minute. So let's check that the date is 03. And it is so journal CTL.
Uppercase G to go all the way to the end. And there we need to scroll up a little bit. And
there we can see the cron job was executed. Touch TMP cron file. And as a result, we should be able
to see it. TMP cron file. As you can see, it has been created 13.03. So mission accomplished.