Okay.
Now it's time to talk about managing processes.
So we have the background processes.
And we have the foreground processes, so we have the BG command and FG OC.
So the BG to put the current command on the background and FG to put the current process on the foreground.
So background which means it is running behind the scenes foreground.
We are seeing what it is so bing google dot com this is a foreground oc so control c to quit from it
so to interrupt to send a sig interrupt signal controls it to suspend the processes and we have control
to quit from it.
But sometimes control doesn't work.
So as you can see, control D doesn't work.
Control C OC.
Now if I type the jobs command, you can see that we have one job that is suspended because of the control
z now to to continue it, we can put the or use the fg f g with percentage shift five and one one,
which is the ID of the job press enter.
You can see that it will start continue it control see jobs again.
You can see there are no nothing here now if I type go bing google dot com and put the n percent the
m percent here or shift seven.
This is to run the command in the background.
Okay, so here, as you can see, the command is being in the background because but because the output
of the command will keep showing to the terminal.
So that's why we are still showing it how to do such a thing.
So as you can see, Control C doesn't work, controls it, doesn't work.
So how to do such a thing?
We will open a new terminal like this, as you can see, and press the BS ox command.
And here to show everything as you can see all of the processes that are running for which user as you
can see by the way, man b as here, it will show you every details about it.
So we are using these orcs then by blinding, then grep the pink command oc like this and here is our
command.
Here you can see the user is Kelly.
Yes, and this is the PID for it.
So we will use another command called Kill Dash nine.
The number of the ID or P ID that's nine means sent as a kill signal.
So force to forcefully kill it.
Now kill it.
Press ops again.
You can see that it is not here anymore.
By the way, this is for the bees grip thing.
That's why it is showing.
So we have learned a lot actually, because we have Dash E, which means to print everything, as you
can see, print everything.
By the way, B.
S command here is a very huge topic.
You can see it's very it has a very huge options, flags and a lot of customisable things.
So for now we learnt the most important thing which is the best UX and using the bi blinding with using
grip and bing or whatever text you want.
OC Cool.