Hider welcome back in this lesson we're going to talk about the advanced process management tools.
OK.
Like estop have zijn jobs.
So let's see how to manage the processes with the help of these advanced tools.
You get first of all you need to install the stop command because by default it is not present on any
Linux system.
You need to install it.
So install.
You just need to type sudo and get install and stop and hit enter and then it will ask for your password
then you need to insert your password.
OK.
I will install it on my machine.
So that's why I work to start it directly like this stock.
OK.
So this is how the code looks with that path.
Stop Come on.
But right now I'm going to critique because you cannot formalise some of operations correctly with normal
users.
You need to be an administration to perform its task here.
So you need to be Ruki users who just switch user come on.
So you log in zoo.
And you need to use your root password.
OK now I log in as root and then type and stop and here.
Now we are log in as root.
Now we can perform any operations that can be performed with the help of this stuff.
Come on.
So let's talk about each option present here and what it's trying to say to us get in the output.
So let's talk about the first option or the output here you this option here or this menu here tells
us that the amount of sleep you involvement inside the processes.
That means two point zero two point six OK this amount is constantly changing.
That is in Walmer talk to you in the process.
OK.
It is the AMO go in Walmart publicity you in handling the processes.
So the next one is memory.
It is the amount of memory used by the processor.
So here you can see there is total nine hundred ninety nine of memory available and out of that fifty
seven point one megabyte of memories used.
And the next one is sap that is W.P. step is in memory which is an extension to our physical memory.
So that is not an actual memory but it is in files which is present on our harddrive and which acts
as an extension to our physical RAM.
OK.
So there is one thousand twenty four megabyte of [REMOVED] members present and out of that zero.
Bike is used.
OK.
So let's talk about the next row here and that is tasks and there are total 26 task and then 15 turret's
and off of that one is running the next row shows us that the load average.
So what does leverage leverage to is the time taken by the SIP you pulled each process one by one.
Linux isn't multitasking.
So that's why it is the loading average.
So it displays your true values.
So the three values here represents the load average for three different timings.
So the first Velu shows us the Lord is for last five minutes.
The second volume shows us the lowdown Resch last 10 minutes and the tol'able shows us to Lola read
since last 15 minutes.
OK here you can see this loadout.
It is also constantly changing.
OK the next two shows us up time uptime since last night.
So what is Stargate.
The total amount of time.
OK.
That goes for what is started and running continuously.
OK.
Here you can see on the server restarted since last 22 minutes.
OK let's talk about the next row here.
OK.
Now we're going to see each column here one by one.
So the first one is B ID.
The ID stands for the process ID process ID is a number with both which we can do any process.
OK.
By providing this number the next one needs the user the user who started the process.
OK.
The name of the user is provided in this column.
OK.
So here you can see 1 6 6 2 is in process ID and that process is started by the user group.
OK the next column represents the PR.
That is the priority we saw in our previous lesson how to set up the priorities.
OK we can also set the priorities in this tool.
And it is very easy to set the priorities with the help of this stop Come on.
So we're going to see in a few minutes how to set up the priorities.
But for now just understand here this column represent the priorities the next column is and I that
is the nice you then after that I it isn't what called memory size or it is the memory that is claimed
but not actually used by the process.
So the root user hiring process Heidi 1 6 6 2 clemmed maybe five thousand eight hundred thirty two kilobytes
will get in the next column.
Yes that is the reason for memory and it is tool maybe user or by the process.
So of of five thousand eight hundred thirty two 3300 kilobytes memory is used here by the Roop user.
And the next column is shared memory.
So this column represents us the memory which is shared with other processes.
OK.
Out of the IRG memory.
OK.
The next column represents the status of deep processes.
So there are different statuses of the processes.
So here you can see the first represents our army.
So that is the running process.
Yes means it is in sleeping mode.
If you find the that means it is either too slow or stop it.
If you find Zelle that means it is in zombie process and if you find the means and the process is in
the state of an interpreter will sleep OK after that the next column represents spew the amount of time
spent by the spew on that process.
The next one is the memory the memory column or the presence of physical RAM it or by the process you
get the next column is time this time column shows us since last.
The process is running all the time.
It by the process or you can also say that the running time of the process and the next one is come
on.
So this column shows us to come on that.
The process started.
Or Linkov to come on with the process.
So the top commander is displayed here and it's process IDs 1 6 x 2 and it is started by the user.
In this way all these columns expenses this very useful information.
OK let's talk about all the options present at the bottom.
Let's talk about of one.
When you press one then you get this help menu here.
And if you want to understand the shortcuts then you can see here you can learn more things with this
help menu then the next one is as to.
So then press F to then the use of two is to set up or to customize the output of this stop.
Come on.
And so you can see or you can customize how it should look to the bottom.
You can control this middle path arrow keys and then Turkey.
You can also send the colors that should reappear handout or the columns that should be opened.
Again you can determine or said anything with the help of this EF 2.
So I'm not going to customize this right now because this output that present is pretty good.
So after that the next option is S3.
So with the help of S3 you can search a particular Come on supposedly here in the command column you
can see there are different com ones are displayed.
So when I type in a b snap D then here you can see it shows us to snap any Come on.
And when you press if they are good it shows you the next game once get in this way you can search a
particular process with the help of it's come on name you get the next option is for when you press
for that you can filter OK.
There is also work like there's three just type.
C'mon.
Suppose I want type or I want filter.
I see.
OK.
I want to fill that SICAD then.
It is showing us all the processes.
OK with this thing come on name it this way you can use this option here.
Press then returns restarted again and start the next one is fine with the help of your file you can
see here the command column.
When I press for you then you get all the processing reformat or all the commands in every format.
Here you can see the Su's group and here that started this stuff.
Come on.
OK.
So you can get in the root of that process or this come on or you can get the information.
As compared to other options and with the help of this think of this the next option is sought by that
is of six when you press at 6:00 then you can see here you choose a different option you can sort out
by process ID or by user or by priority or by nice values.
Ok there are different options riddle of which you can sort.
So suppose I want to sort out what my user can select this user I need to enter.
Now you can see the output is sorted based on users like this.
The next option is at 7 7 and you can set highest priority nice value.
OK.
Love is though value means higher priority.
So here this present user is having priority 20 and I want to set it too high.
So press have seven.
So as I press f7 the value decrease this year.
Now it is said to turn it on if you want to increase the value.
That means you want to set the lowest priority.
Then you can press effect OK like this and by pressing up work you can set it to normal in this way
you can set up the priorities.
F7 and Peggy and the next option is nine with the help of health nine.
Come on you can directly kill any process that is running in this column.
OK so suppose I want to kill this process.
Prashant.
Good or.
OK let's kill this process top so to kill that press night.
OK.
Now here of the pressing of mine you can see here there are different signals that you can send.
OK.
So you need to select these signals.
So of all the signals I want to select nine because signalized means the absolute key.
OK.
So when you send the signal.
OK.
Now our prosess stop here.
OK.
In this way you can send a different signal so you can learn about it signal by searching online because
the signals are a lot signals.
And of course that signal number nine is for absolute kill signal number 15 is for stopping a process.
So these two are important signals.
So just log out here Exhibit No.
We are here as Prashant.
So the next come on that I would like to show you is jobs with jobs come on you can see the list of
jobs that are running on your system.
Currently there is no job is running on a system.
OK so suppose I come on it stop and send it back around.
OK.
So when I type jobs here you can see it shows us the stop command is running and it isn't stop rested.
So you can see the list of jobs that are currently running on your system with the help of jobs come
on.
The next one that I would like to show you is F G F G.
Come on you used to start the job OK or restart a job that is top to the background.
So you just need to provide here key.
And after that the process name is there is only one process or the job is running that you don't need
to prove anything this data.
And here you can see updating enter our process started back.
In this way and the jobs come on work.
OK so suppose I type stop quick stop
yoga there are companies that are running in the background with the same name.
So if you want to start the second process then you need to cloyed option like this.
OK.
That is more and if you want to start the first day like this.
OK.
So if you having more than one processes all jobs running then just provide the option like this one
two three.
Well anything that is done and you can start that process back like this to get in this way you can
perform the operations on the Linux system with the help of this pretty useful and very interesting
colorful tool.
OK.