WEBVTT

00:08.960 --> 00:14.640
Hider welcome back in this lesson we're going to talk about the advanced process management tools.

00:14.650 --> 00:15.090
OK.

00:15.190 --> 00:18.120
Like estop have zijn jobs.

00:18.280 --> 00:23.230
So let's see how to manage the processes with the help of these advanced tools.

00:24.050 --> 00:30.360
You get first of all you need to install the stop command because by default it is not present on any

00:30.400 --> 00:31.520
Linux system.

00:31.550 --> 00:32.680
You need to install it.

00:32.720 --> 00:34.030
So install.

00:34.220 --> 00:43.580
You just need to type sudo and get install and stop and hit enter and then it will ask for your password

00:43.660 --> 00:45.950
then you need to insert your password.

00:46.070 --> 00:46.690
OK.

00:46.950 --> 00:48.910
I will install it on my machine.

00:48.980 --> 00:53.250
So that's why I work to start it directly like this stock.

00:53.310 --> 00:53.890
OK.

00:53.990 --> 00:57.670
So this is how the code looks with that path.

00:57.710 --> 00:58.600
Stop Come on.

00:58.680 --> 01:06.750
But right now I'm going to critique because you cannot formalise some of operations correctly with normal

01:06.750 --> 01:07.270
users.

01:07.280 --> 01:11.340
You need to be an administration to perform its task here.

01:11.510 --> 01:16.550
So you need to be Ruki users who just switch user come on.

01:16.700 --> 01:19.870
So you log in zoo.

01:20.100 --> 01:23.020
And you need to use your root password.

01:23.270 --> 01:28.560
OK now I log in as root and then type and stop and here.

01:28.670 --> 01:31.250
Now we are log in as root.

01:31.280 --> 01:37.330
Now we can perform any operations that can be performed with the help of this stuff.

01:37.320 --> 01:37.970
Come on.

01:38.150 --> 01:45.890
So let's talk about each option present here and what it's trying to say to us get in the output.

01:45.890 --> 01:52.880
So let's talk about the first option or the output here you this option here or this menu here tells

01:52.880 --> 01:58.040
us that the amount of sleep you involvement inside the processes.

01:58.070 --> 02:05.180
That means two point zero two point six OK this amount is constantly changing.

02:05.180 --> 02:08.540
That is in Walmer talk to you in the process.

02:08.580 --> 02:09.030
OK.

02:09.140 --> 02:13.600
It is the AMO go in Walmart publicity you in handling the processes.

02:13.700 --> 02:15.920
So the next one is memory.

02:16.040 --> 02:20.580
It is the amount of memory used by the processor.

02:20.570 --> 02:27.250
So here you can see there is total nine hundred ninety nine of memory available and out of that fifty

02:27.320 --> 02:31.200
seven point one megabyte of memories used.

02:31.280 --> 02:40.800
And the next one is sap that is W.P. step is in memory which is an extension to our physical memory.

02:40.800 --> 02:48.170
So that is not an actual memory but it is in files which is present on our harddrive and which acts

02:48.170 --> 02:50.980
as an extension to our physical RAM.

02:50.980 --> 02:51.420
OK.

02:51.650 --> 02:59.020
So there is one thousand twenty four megabyte of [REMOVED] members present and out of that zero.

02:59.190 --> 03:00.920
Bike is used.

03:00.940 --> 03:01.200
OK.

03:01.220 --> 03:11.000
So let's talk about the next row here and that is tasks and there are total 26 task and then 15 turret's

03:11.090 --> 03:17.180
and off of that one is running the next row shows us that the load average.

03:17.180 --> 03:25.260
So what does leverage leverage to is the time taken by the SIP you pulled each process one by one.

03:25.280 --> 03:26.720
Linux isn't multitasking.

03:26.720 --> 03:29.420
So that's why it is the loading average.

03:29.420 --> 03:31.910
So it displays your true values.

03:32.000 --> 03:39.040
So the three values here represents the load average for three different timings.

03:39.380 --> 03:43.580
So the first Velu shows us the Lord is for last five minutes.

03:43.640 --> 03:49.660
The second volume shows us the lowdown Resch last 10 minutes and the tol'able shows us to Lola read

03:49.880 --> 03:51.900
since last 15 minutes.

03:52.150 --> 03:54.400
OK here you can see this loadout.

03:54.410 --> 03:56.460
It is also constantly changing.

03:56.720 --> 04:00.740
OK the next two shows us up time uptime since last night.

04:00.740 --> 04:02.210
So what is Stargate.

04:02.200 --> 04:04.110
The total amount of time.

04:04.170 --> 04:04.740
OK.

04:04.850 --> 04:09.060
That goes for what is started and running continuously.

04:09.360 --> 04:09.650
OK.

04:09.650 --> 04:15.010
Here you can see on the server restarted since last 22 minutes.

04:15.290 --> 04:18.060
OK let's talk about the next row here.

04:18.230 --> 04:18.700
OK.

04:18.730 --> 04:22.530
Now we're going to see each column here one by one.

04:22.550 --> 04:24.580
So the first one is B ID.

04:24.580 --> 04:31.630
The ID stands for the process ID process ID is a number with both which we can do any process.

04:31.630 --> 04:32.110
OK.

04:32.210 --> 04:39.050
By providing this number the next one needs the user the user who started the process.

04:39.080 --> 04:39.570
OK.

04:39.770 --> 04:42.690
The name of the user is provided in this column.

04:42.800 --> 04:43.490
OK.

04:43.490 --> 04:51.020
So here you can see 1 6 6 2 is in process ID and that process is started by the user group.

04:51.050 --> 04:54.450
OK the next column represents the PR.

04:54.470 --> 05:00.040
That is the priority we saw in our previous lesson how to set up the priorities.

05:00.260 --> 05:04.830
OK we can also set the priorities in this tool.

05:05.060 --> 05:10.750
And it is very easy to set the priorities with the help of this stop Come on.

05:10.760 --> 05:14.970
So we're going to see in a few minutes how to set up the priorities.

05:15.170 --> 05:22.610
But for now just understand here this column represent the priorities the next column is and I that

05:22.610 --> 05:31.560
is the nice you then after that I it isn't what called memory size or it is the memory that is claimed

05:31.680 --> 05:34.330
but not actually used by the process.

05:34.380 --> 05:42.510
So the root user hiring process Heidi 1 6 6 2 clemmed maybe five thousand eight hundred thirty two kilobytes

05:42.680 --> 05:46.120
will get in the next column.

05:46.530 --> 05:52.590
Yes that is the reason for memory and it is tool maybe user or by the process.

05:52.720 --> 06:03.990
So of of five thousand eight hundred thirty two 3300 kilobytes memory is used here by the Roop user.

06:04.170 --> 06:06.730
And the next column is shared memory.

06:06.780 --> 06:12.930
So this column represents us the memory which is shared with other processes.

06:13.020 --> 06:13.840
OK.

06:13.860 --> 06:16.100
Out of the IRG memory.

06:16.210 --> 06:16.630
OK.

06:16.740 --> 06:21.410
The next column represents the status of deep processes.

06:21.450 --> 06:24.460
So there are different statuses of the processes.

06:24.510 --> 06:29.050
So here you can see the first represents our army.

06:29.040 --> 06:31.090
So that is the running process.

06:31.320 --> 06:33.700
Yes means it is in sleeping mode.

06:34.200 --> 06:38.710
If you find the that means it is either too slow or stop it.

06:39.000 --> 06:47.140
If you find Zelle that means it is in zombie process and if you find the means and the process is in

06:47.140 --> 06:54.600
the state of an interpreter will sleep OK after that the next column represents spew the amount of time

06:54.600 --> 06:58.530
spent by the spew on that process.

06:58.590 --> 07:04.950
The next one is the memory the memory column or the presence of physical RAM it or by the process you

07:04.980 --> 07:11.370
get the next column is time this time column shows us since last.

07:11.370 --> 07:14.300
The process is running all the time.

07:14.370 --> 07:21.330
It by the process or you can also say that the running time of the process and the next one is come

07:21.330 --> 07:21.770
on.

07:21.900 --> 07:26.090
So this column shows us to come on that.

07:26.110 --> 07:27.460
The process started.

07:27.670 --> 07:31.250
Or Linkov to come on with the process.

07:31.300 --> 07:40.250
So the top commander is displayed here and it's process IDs 1 6 x 2 and it is started by the user.

07:40.440 --> 07:45.630
In this way all these columns expenses this very useful information.

07:45.630 --> 07:49.440
OK let's talk about all the options present at the bottom.

07:49.770 --> 07:51.090
Let's talk about of one.

07:51.090 --> 07:55.070
When you press one then you get this help menu here.

07:55.350 --> 08:04.350
And if you want to understand the shortcuts then you can see here you can learn more things with this

08:04.350 --> 08:08.010
help menu then the next one is as to.

08:08.160 --> 08:16.710
So then press F to then the use of two is to set up or to customize the output of this stop.

08:16.710 --> 08:17.390
Come on.

08:17.410 --> 08:22.410
And so you can see or you can customize how it should look to the bottom.

08:22.530 --> 08:27.470
You can control this middle path arrow keys and then Turkey.

08:27.930 --> 08:35.690
You can also send the colors that should reappear handout or the columns that should be opened.

08:35.790 --> 08:40.530
Again you can determine or said anything with the help of this EF 2.

08:40.560 --> 08:47.670
So I'm not going to customize this right now because this output that present is pretty good.

08:47.670 --> 08:51.290
So after that the next option is S3.

08:51.300 --> 08:57.900
So with the help of S3 you can search a particular Come on supposedly here in the command column you

08:57.900 --> 09:01.220
can see there are different com ones are displayed.

09:01.260 --> 09:08.520
So when I type in a b snap D then here you can see it shows us to snap any Come on.

09:08.520 --> 09:15.600
And when you press if they are good it shows you the next game once get in this way you can search a

09:15.600 --> 09:22.860
particular process with the help of it's come on name you get the next option is for when you press

09:23.010 --> 09:25.870
for that you can filter OK.

09:25.900 --> 09:30.530
There is also work like there's three just type.

09:30.670 --> 09:31.170
C'mon.

09:31.170 --> 09:34.060
Suppose I want type or I want filter.

09:34.140 --> 09:35.550
I see.

09:35.850 --> 09:36.500
OK.

09:36.510 --> 09:38.820
I want to fill that SICAD then.

09:39.090 --> 09:41.150
It is showing us all the processes.

09:41.160 --> 09:47.100
OK with this thing come on name it this way you can use this option here.

09:47.300 --> 09:56.160
Press then returns restarted again and start the next one is fine with the help of your file you can

09:56.160 --> 09:58.990
see here the command column.

09:59.220 --> 10:07.890
When I press for you then you get all the processing reformat or all the commands in every format.

10:07.980 --> 10:15.420
Here you can see the Su's group and here that started this stuff.

10:15.420 --> 10:16.090
Come on.

10:16.290 --> 10:16.710
OK.

10:16.800 --> 10:22.980
So you can get in the root of that process or this come on or you can get the information.

10:23.630 --> 10:30.260
As compared to other options and with the help of this think of this the next option is sought by that

10:30.300 --> 10:38.510
is of six when you press at 6:00 then you can see here you choose a different option you can sort out

10:39.110 --> 10:45.790
by process ID or by user or by priority or by nice values.

10:45.950 --> 10:51.000
Ok there are different options riddle of which you can sort.

10:51.030 --> 10:56.740
So suppose I want to sort out what my user can select this user I need to enter.

10:56.820 --> 11:05.680
Now you can see the output is sorted based on users like this.

11:05.890 --> 11:13.470
The next option is at 7 7 and you can set highest priority nice value.

11:13.630 --> 11:14.250
OK.

11:14.270 --> 11:17.740
Love is though value means higher priority.

11:17.750 --> 11:25.620
So here this present user is having priority 20 and I want to set it too high.

11:25.640 --> 11:27.480
So press have seven.

11:27.500 --> 11:32.100
So as I press f7 the value decrease this year.

11:32.450 --> 11:37.760
Now it is said to turn it on if you want to increase the value.

11:37.760 --> 11:40.660
That means you want to set the lowest priority.

11:41.180 --> 11:51.970
Then you can press effect OK like this and by pressing up work you can set it to normal in this way

11:51.980 --> 11:53.690
you can set up the priorities.

11:53.750 --> 11:59.360
F7 and Peggy and the next option is nine with the help of health nine.

11:59.360 --> 12:05.930
Come on you can directly kill any process that is running in this column.

12:06.170 --> 12:10.810
OK so suppose I want to kill this process.

12:10.810 --> 12:11.770
Prashant.

12:11.920 --> 12:13.110
Good or.

12:13.210 --> 12:17.970
OK let's kill this process top so to kill that press night.

12:18.130 --> 12:18.410
OK.

12:18.410 --> 12:25.320
Now here of the pressing of mine you can see here there are different signals that you can send.

12:25.410 --> 12:25.800
OK.

12:25.910 --> 12:27.790
So you need to select these signals.

12:27.820 --> 12:36.310
So of all the signals I want to select nine because signalized means the absolute key.

12:36.440 --> 12:36.870
OK.

12:36.980 --> 12:39.350
So when you send the signal.

12:39.830 --> 12:40.120
OK.

12:40.130 --> 12:42.970
Now our prosess stop here.

12:43.150 --> 12:43.860
OK.

12:44.290 --> 12:51.590
In this way you can send a different signal so you can learn about it signal by searching online because

12:51.850 --> 12:53.780
the signals are a lot signals.

12:53.780 --> 13:01.840
And of course that signal number nine is for absolute kill signal number 15 is for stopping a process.

13:02.030 --> 13:04.470
So these two are important signals.

13:04.790 --> 13:09.510
So just log out here Exhibit No.

13:10.010 --> 13:11.910
We are here as Prashant.

13:11.960 --> 13:19.220
So the next come on that I would like to show you is jobs with jobs come on you can see the list of

13:19.220 --> 13:21.540
jobs that are running on your system.

13:21.590 --> 13:25.050
Currently there is no job is running on a system.

13:25.070 --> 13:30.650
OK so suppose I come on it stop and send it back around.

13:30.940 --> 13:31.570
OK.

13:31.760 --> 13:41.440
So when I type jobs here you can see it shows us the stop command is running and it isn't stop rested.

13:41.780 --> 13:48.050
So you can see the list of jobs that are currently running on your system with the help of jobs come

13:48.050 --> 13:49.120
on.

13:49.160 --> 13:52.820
The next one that I would like to show you is F G F G.

13:52.820 --> 14:01.440
Come on you used to start the job OK or restart a job that is top to the background.

14:01.520 --> 14:05.960
So you just need to provide here key.

14:06.170 --> 14:12.710
And after that the process name is there is only one process or the job is running that you don't need

14:12.710 --> 14:14.940
to prove anything this data.

14:15.260 --> 14:19.980
And here you can see updating enter our process started back.

14:20.350 --> 14:23.750
In this way and the jobs come on work.

14:23.780 --> 14:31.760
OK so suppose I type stop quick stop

14:34.580 --> 14:40.090
yoga there are companies that are running in the background with the same name.

14:40.120 --> 14:46.730
So if you want to start the second process then you need to cloyed option like this.

14:46.750 --> 14:47.340
OK.

14:47.470 --> 14:52.460
That is more and if you want to start the first day like this.

14:52.540 --> 14:53.210
OK.

14:53.470 --> 15:01.070
So if you having more than one processes all jobs running then just provide the option like this one

15:01.090 --> 15:02.110
two three.

15:02.120 --> 15:09.970
Well anything that is done and you can start that process back like this to get in this way you can

15:10.000 --> 15:17.830
perform the operations on the Linux system with the help of this pretty useful and very interesting

15:17.890 --> 15:19.060
colorful tool.

15:19.230 --> 15:19.660
OK.
