Hello friends in this lesson we're going to talk about process management in Linux.
So what are processes or what is a process.
Any program that runs in the computer memory is coloniser process so processes are of two types.
Number one it's achromatic process and the number two is interactive process.
The metric processes are those processes which are started by the system during boot time.
OK.
Can the interactive processes are those processes which are started by or executed by the user.
OK.
On the command or the program that you start from the shell Arkan's in the category of incorrect two
processes.
OK.
So as a Linux system administrator it is your job to make sure that your system runs correctly and gives
a better performance.
OK.
So in this lesson I would like to show you three or four commands with the help of which you can monitor
the processes and their status or you can also view the SIP you activities.
So let's see practically how good this OK for first on that I would like to show here is because we
use Kamani you can view the list of processes that are running on your system.
So let's take this and hit enter and here you can see it shows two processes are running and it shows
that process IDs.
OK.
So the process IDs are very important for us.
OK we're going to learn about it later but for now just remember it is useful information with this
come on you can try different cities like if you are try hyphen even it will list all the processes
running on your system.
OK.
Like this or you can view them one by one with this option like this by hitting enter you can view each
process one by one like this or by passing if when and if when you pass.
Then it will list all the processes in full format like this.
OK.
And then you provide and then it will list all the processes in long listing like this.
OK.
In this way you can try these switches with it and get a lot of information or better information OK.
The next which is X when you pass x then it will show the running processes.
In short as the state get shot be because this.
And when you parse you X then it will show all the processes in Long Beach the format like this.
And you can track a particular user information here means which processes are initiated by the user
with the help of these people come on like this just need to provide for you and username.
And here you can see these are the processes which are started by me.
OK which is the in user here.
So in this way you can track your users means which processes that are running or what are they actually
doing on the system.
OK.
In this way you can use the command OK and get certain useful information.
The next command that I would like to show is Bob.
So let's see what it reveals.
The top command explains everything and that which is very important information about the processes.
So let's see one by one here.
What this all shows to us.
OK let's talk about the first row the first row reveals about the uptime of this system or the server.
Ok here you can see the snow is running since last eight hours and 35 minutes.
We'll get the next part shows the number of users that are currently logged in here.
Only one user is here on the system.
OK the next part is leverage.
It is the most important part here and the value here is the number of processors that reverting to
be handled by the CPA.
OK.
Next explain the information about the tasks that are running here conceived.
It shows the total number of past that is 122.
Of course that one is running and the rest 121 are in sleeping mode.
The next part explain the stop the pass out of that.
So here zero cost us stop and the next part explains those zombie processes or the Zombie Dust.
So what is Zombi process.
Any process that is stopped but it unable to get to its existence stood by patent process.
So such processes are colorize the zombie process.
So here are those zeroes on the processing side on the system.
So let's talk about the next floor that is CPQ.
So the first part is yes that is userspace.
It shows the involvement of the CPQ in the user activities.
OK the next part is yes why that is activity in system space.
That is it shows here thirty one point seven and its constantly changing.
So despite rigorous security within systems space the next part is and I saw the value here indicates
the amount of time spent by the CPQ on low priority processes.
Okay the next part is ID that leads to inactivity.
This part explains that the interactivity of the C.P. you saw the greater than them were here.
That means you are system is doing nothing in the next part is W.J..
So value here indicates the amount of time you see you working for the input for example the input output
hardwares that are according to a system like this keyboard mouse again.
The next one is that is the hardware interrupt.
So this part explains or shows us are the normal here shows us that the amount of time spent by the
sleep you are interacting with the hardware and the next parties aside there is software interrupt.
So at this point or this part explains us the amount of time spent by the people interacting with the
software and the last one is and see the value at this point indicate the amount of time stolen by the
watch you live in hypervisor from it were tool machine.
So in this way this third party explained on the information about the C.P. and the system the next
row explain the information about the memory.
So it explains the total amount of memory available then all of that the free and out of that the user
and the rest is the buffer or cache memory and the next to explain the information about this memory
like total memory and then free and then the user and then available memory for use.
OK let's talk about the last through here.
The first part here reveals the ID that is the process id the process IDs are very important.
Suppose you want to process then process.
You need pro-white the process id come on.
So the next part is the user.
So it reveals that user information to which the process belongs.
OK the next one is Pierre explains those top priority or shows us the priority of the process.
The next one is Yanai.
That is the nice value with the help of nice value we can set priorities.
So we're going to learn about this in the next lesson or the next part the next is the Arti it shows
us the total amount of memory limited by the process.
OK.
So the pressure on processors currently occupied thousand one hundred fifty two bytes of memory and
the next part.
So those are yes that is the resident memory resident memory the memory of which is actually user out
of the hour.
Ms.
Plimmer memory and the next one is shared memory means the memory which is shared by this process other
process.
They are of the use of that memory.
And the next part is as.
Which explains all shows and the status of the process.
R-Minn. said that is running as a means in the sleeping mode.
If it shows zero that means it is a zombie process if its showing you the that mean it is clear signal
or stop a process and if it shows your ID that means it needs an interrupt cable.
Sleep OK.
In this way the symbols reveals the status next door is CPQ the Sibiu part here shows us the amount
of C.P. activities causer in the last quailing cycle.
So what is all the cycle online cycle means the time in which a device or process monitored once ok
and continuously.
So in this way is use the information about the last polling cycle and then the next part is memory.
So this is the percentage of memory that has used in the last billing cycle.
The next one is the time this indicates the total amount of time that has used by the process since
first it was started.
Okay the next part is come on.
Okay.
So the process which is belong to which come on.
So it gives information about it.
So in this way you can monitor here all the information which is very essential as System Administrator.
Suppose you want to kill a process then just press key on your keyboard.
And here you can see it shows full persons IDs booty 1 7 so and will be 3 1 7.
And he sent P.O.D..
He wanted to signal the OK here you can see the come on top is stop here.
When we send this number signal to this.
OK.
So there are different kinds of signals so that we're going to learn in the upcoming lesson.
So there are some other things that you can't do that this stuff come on like this.
You want to delay the output of these processes then you can delay it by pointing in seconds.
Let's see the output.
OK.
You can see it showing the output with the delay of two seconds.
Let's send it to zero.
OK.
And now here you can see how fast showing that look.
OK.
OK the next suit use Front be with this switch you can view a particular process that was three to go.
But currently it's not showing anything here.
But remember that with this you can view information about that particular process by sending here that
process ID when you pass for B then it start or it shows the output in non indirect do more.
OK let's see what is non-interactive more OK.
Like this means we can't do anything here.
It's continuously shows in this way the output to stop Press Control see it let's clear it up for you.
You can view an information about a particular user like this.
OK.
So it's currently showing in the process initiated by the user Prashanth like this.
Plus Control-C to stop.
OK let's start again the top.
Suppose you press there then you can see the output format of any press B.
Then you can highlight it ok like this.
In this way you can do a lot of more important information with the help of these commands.
Next important come on the show is uptight.
Use you the same information that we solve it.
C'mon c'mon free it should you the same ought to be solved with the help of God.
Come on about the computer memory.
OK.
In this way you can see the list of processes that are running on your system and you can see the amount
of memory that is used by any particular process.
Again with the help of that you can get to the point that which process is actually causing the problem.
Like hanging your system or not turning in proper way.
OK in the next lesson I'm going to show you how to set the priorities of the processes.
Again with the help of nice and really nice.
Come on.