Right now, it's time to talk about the processes and the jobs in the background or foreground jobs.
OK, now for the to see all the processes, actually, we are using the first thing, the best command,
so you can see the best command.
It will show me some commands that are running the ID, the type that are used.
By the way, this is the teletype from the pits.
You can read more about it.
I recommend you to read about it.
But actually, this is something I'm theory, it will not make a difference for you, to be honest,
but it is good to have what is TDY or how a small brief history about the tribe fits something like
that.
OK, this is the time, the system that is used now we have other options, which is Dashi, which is
everything.
So if I press it like that, you can see it will start showing every command I have on the whole system.
OK, the idea this is the idea that are being used, the time that seemed as well.
Now, if you want to see a full information, which is Desh of the ECF, which means full of information
that the user the idea, let's have a look at their ID, which is the parent I did.
So here sees this time that y times.
OK, whatever.
OK, now if I want to see information about a specific user, so what are the processes for a specific
user.
So you can see that here for this, which is the deputy data here, the Ubuntu here is the root, here
is the map or whatever.
Now what if I want to see everything for Ubuntu so I can just provide the Deshu option?
By the way, it's very simple.
Ubuntu, which is the name of the user and presenter.
OK, so you can see that I want to use one has only the following processes.
OK.
And if I see for Ruth, for example.
It will show me, as with everything here is forward, if I type Deshu and if I type dash of fear,
you can see it will show forward only and for for as a full information.
OK, the Pied Piper did I name the last the command, whatever.
OK, all right.
Now in Windows we have something called task manager to see the task can remove or actually it has a
lot features, monitor whatever.
Now in this or the in Linux we have something called top or at the top.
Actually it show you as you can see, here is the task, the number of procedures that the memory,
whatever.
And actually I refer to that much.
I prefer archtop actually, because on the other hand, it is more elegant.
So you can see archtop is more elegant.
Give you information about the memory resources average, ablate average.
You can see that the average and the tasks and the how much ram I have on the server will the utilization
and so on.
And by the way, the command they use out of that Pidd, everything is higher actually, as you can
see, which is something very powerful.
BOFUR So far, so good.
Now enough with the process.
Let's talk about how to run a specific commands in the background.
So actually I have this command, for example, the chef, and if I run it, it will still building
on that front.
OK, so I cannot put anything here so you can see that.
As you can see, I cannot put any comment from own, so now this is just an example, by the way, we
don't use in that way, by the way.
But for example, you have a specific BASHE script that's running and building on the standard output
like this.
So in that case, it's better to run it in the background, which is like this hotel, which is our
example, dash and shift seven, which means that emberson like that, this means that this command
will be running in the background.
Yeah, cool.
Now we have it here.
So, by the way, you can see that we have two numbers, which is this one in the square brackets and
this one, by the way, this one is the idea for this thing.
So if I type this and let's use the grip with the pipeline, it's a good practice to see that, actually.
So one five.
Nine and Lizzi, yeah, it is here, this it is, and you can see that it is deathin.
Which is the deal?
OK, cool.
Now, what if I want to stop to stop this comment actually or to want to kill it?
I didn't need it anymore how to do such a thing?
Well, actually, we have to wait.
Either using the kill command or we can use that BGI or the AFG then control.
See, to interrupt such controversy, as you can see, to interrupt control to exist but don't exist,
it will exist from the shell and be careful and control it.
It will be sub specific.
Proceed or suspended by the way.
All right.
Now let's start with the circle and then provide dash, then provide that number of the signal and how
to know the number of the signal.
But for now.
But is a kill shell.
And here you can see that we have all the signals.
We have stickup sexer count, interrupt, kill terror, whatever, OK.
Actually, the most important ones is the one which is six, which means that wait until until the process
complete its work, then kill it, which means hang up first.
Then we have the kill.
Yeah.
Whatever it is Yamhill which is nine and we have the term which is 15.
OK, these are the most important.
But these are not just these few.
We have a trap.
We have oh we have a lot of things that I recommend you to read more about it if you are interested.
But in my guess, I would say that's nine and then provide that idea.
And by the way, the idea I will just copy and paste it.
Like this or the name of the process, which is done in my case, but it is better or a good practice
to have it as a not as a name.
So here.
As you can see, no, if I put the group comment again, which is this one.
You can see that it is now, as you can see previously, it was stopped because it is running in the
background.
It was struck and here but here is killed.
So if I type the comment again, you can see that it is not existed anymore.
So wait for it, then it will kill it.
Killed it.
All right.
So far, so good.
OK, now let's run this comment again, David, chef, underscore the ampersand, let's check it, which
is that B.S. Dashi grip and what I did.
Yeah, you can see it is here and stopped.
So this time if I kill it, Desh 15.
And what that did.
And let's have a grip, you can see that it is here, it is waiting.
So if I wait a little bit and if I run this command, you can see that it didn't hit it immediately.
So here Dash nine, which means force kid but 15 here.
So actually, it is used sometimes with some software or programs.
So you can see, yeah, it is still here.
So again, let's it using dash or actually we need it.
We want to learn that other things now again, we already saw what is this number, which is the idea.
But what is this.
This is the number for the job, which means that we have this as a second job or the index.
So if I take the combat jobs.
It will bring all the jobs I have, by the way, I have already this one, so this is the second one,
as you can see, the number of job which is to stopped and take Duceppe.
OK, which is the comment.
No, if I use the big.
And the number of the job, this means that this job will go to the background, so you can see that
now if I type jobs, you can see that it is terminated.
Because we already sent the signal, which is, by the way, you remember when we type that where it
is.
Yeah, here, kill Dash 15, we killed it on the spot using the signal sector.
Know if I want to go it.
So, by the way, if I type jobs again, you can see that now it is removed, by the way.
Yeah.
Because we we terminated.
OK, now if I go to EFG this time I will not use big F one.
You can see that this means that photograph B.G. means background of G and the number of the job which
is this one.
It will go for grumped.
This means that it will be going here.
So if I controversy it would interrupt and it will kill this process.
But if I tight controls it, by the way, we already saw the controversy, but if I type it, it will
suspend it.
Suspend it means that if I have the jobs again jobs command you can see it is stopped.
So a big one and then jobs again.
You can see that here it is here, but it is stopped currently.
We don't have it.
So if I go again inside EFG and then the one.
And if I click controversy, it will be killed, I guess the CIA, it will be killed.
All right.
Thanks for watching.