WEBVTT

00:08.770 --> 00:13.680
Hello friends in this lesson we're going to talk about process management in Linux.

00:13.710 --> 00:17.880
So what are processes or what is a process.

00:17.880 --> 00:27.520
Any program that runs in the computer memory is coloniser process so processes are of two types.

00:27.540 --> 00:32.850
Number one it's achromatic process and the number two is interactive process.

00:32.950 --> 00:39.290
The metric processes are those processes which are started by the system during boot time.

00:39.450 --> 00:39.870
OK.

00:40.050 --> 00:48.130
Can the interactive processes are those processes which are started by or executed by the user.

00:48.270 --> 00:48.730
OK.

00:48.910 --> 00:55.650
On the command or the program that you start from the shell Arkan's in the category of incorrect two

00:55.770 --> 00:56.670
processes.

00:56.880 --> 00:57.430
OK.

00:57.640 --> 01:05.370
So as a Linux system administrator it is your job to make sure that your system runs correctly and gives

01:05.370 --> 01:06.650
a better performance.

01:06.660 --> 01:07.190
OK.

01:07.530 --> 01:15.360
So in this lesson I would like to show you three or four commands with the help of which you can monitor

01:15.360 --> 01:21.930
the processes and their status or you can also view the SIP you activities.

01:21.930 --> 01:29.800
So let's see practically how good this OK for first on that I would like to show here is because we

01:30.010 --> 01:35.870
use Kamani you can view the list of processes that are running on your system.

01:36.020 --> 01:43.880
So let's take this and hit enter and here you can see it shows two processes are running and it shows

01:43.880 --> 01:45.350
that process IDs.

01:45.430 --> 01:45.980
OK.

01:46.100 --> 01:49.440
So the process IDs are very important for us.

01:49.430 --> 01:56.330
OK we're going to learn about it later but for now just remember it is useful information with this

01:56.350 --> 02:03.800
come on you can try different cities like if you are try hyphen even it will list all the processes

02:03.890 --> 02:05.360
running on your system.

02:05.470 --> 02:06.020
OK.

02:06.170 --> 02:16.580
Like this or you can view them one by one with this option like this by hitting enter you can view each

02:16.580 --> 02:23.910
process one by one like this or by passing if when and if when you pass.

02:24.080 --> 02:29.440
Then it will list all the processes in full format like this.

02:29.570 --> 02:30.500
OK.

02:30.660 --> 02:38.730
And then you provide and then it will list all the processes in long listing like this.

02:38.880 --> 02:39.450
OK.

02:39.710 --> 02:47.160
In this way you can try these switches with it and get a lot of information or better information OK.

02:47.210 --> 02:54.500
The next which is X when you pass x then it will show the running processes.

02:54.500 --> 02:58.330
In short as the state get shot be because this.

02:58.550 --> 03:07.580
And when you parse you X then it will show all the processes in Long Beach the format like this.

03:08.030 --> 03:15.050
And you can track a particular user information here means which processes are initiated by the user

03:15.170 --> 03:23.680
with the help of these people come on like this just need to provide for you and username.

03:23.990 --> 03:29.000
And here you can see these are the processes which are started by me.

03:29.030 --> 03:31.860
OK which is the in user here.

03:32.120 --> 03:39.500
So in this way you can track your users means which processes that are running or what are they actually

03:39.500 --> 03:41.030
doing on the system.

03:41.170 --> 03:41.720
OK.

03:41.920 --> 03:48.100
In this way you can use the command OK and get certain useful information.

03:48.500 --> 03:51.690
The next command that I would like to show is Bob.

03:51.890 --> 03:54.720
So let's see what it reveals.

03:54.870 --> 04:02.330
The top command explains everything and that which is very important information about the processes.

04:02.630 --> 04:04.550
So let's see one by one here.

04:04.970 --> 04:07.440
What this all shows to us.

04:07.610 --> 04:16.670
OK let's talk about the first row the first row reveals about the uptime of this system or the server.

04:17.060 --> 04:22.340
Ok here you can see the snow is running since last eight hours and 35 minutes.

04:22.370 --> 04:28.540
We'll get the next part shows the number of users that are currently logged in here.

04:28.610 --> 04:31.640
Only one user is here on the system.

04:31.820 --> 04:33.880
OK the next part is leverage.

04:33.920 --> 04:41.060
It is the most important part here and the value here is the number of processors that reverting to

04:41.060 --> 04:43.190
be handled by the CPA.

04:43.460 --> 04:44.140
OK.

04:44.570 --> 04:49.460
Next explain the information about the tasks that are running here conceived.

04:49.490 --> 04:53.180
It shows the total number of past that is 122.

04:53.390 --> 04:59.870
Of course that one is running and the rest 121 are in sleeping mode.

04:59.870 --> 05:03.430
The next part explain the stop the pass out of that.

05:03.440 --> 05:12.520
So here zero cost us stop and the next part explains those zombie processes or the Zombie Dust.

05:12.530 --> 05:15.080
So what is Zombi process.

05:15.170 --> 05:23.350
Any process that is stopped but it unable to get to its existence stood by patent process.

05:23.360 --> 05:26.540
So such processes are colorize the zombie process.

05:26.550 --> 05:30.750
So here are those zeroes on the processing side on the system.

05:30.800 --> 05:33.970
So let's talk about the next floor that is CPQ.

05:34.310 --> 05:38.110
So the first part is yes that is userspace.

05:38.180 --> 05:42.710
It shows the involvement of the CPQ in the user activities.

05:43.060 --> 05:47.960
OK the next part is yes why that is activity in system space.

05:48.050 --> 05:53.600
That is it shows here thirty one point seven and its constantly changing.

05:54.200 --> 06:02.690
So despite rigorous security within systems space the next part is and I saw the value here indicates

06:02.690 --> 06:07.860
the amount of time spent by the CPQ on low priority processes.

06:08.090 --> 06:12.690
Okay the next part is ID that leads to inactivity.

06:12.800 --> 06:19.370
This part explains that the interactivity of the C.P. you saw the greater than them were here.

06:19.370 --> 06:24.580
That means you are system is doing nothing in the next part is W.J..

06:24.800 --> 06:32.390
So value here indicates the amount of time you see you working for the input for example the input output

06:32.390 --> 06:37.840
hardwares that are according to a system like this keyboard mouse again.

06:38.180 --> 06:41.250
The next one is that is the hardware interrupt.

06:41.480 --> 06:48.560
So this part explains or shows us are the normal here shows us that the amount of time spent by the

06:48.560 --> 06:54.990
sleep you are interacting with the hardware and the next parties aside there is software interrupt.

06:55.280 --> 07:03.710
So at this point or this part explains us the amount of time spent by the people interacting with the

07:03.710 --> 07:12.140
software and the last one is and see the value at this point indicate the amount of time stolen by the

07:12.140 --> 07:16.000
watch you live in hypervisor from it were tool machine.

07:16.130 --> 07:23.090
So in this way this third party explained on the information about the C.P. and the system the next

07:23.240 --> 07:26.690
row explain the information about the memory.

07:26.900 --> 07:34.070
So it explains the total amount of memory available then all of that the free and out of that the user

07:34.400 --> 07:42.830
and the rest is the buffer or cache memory and the next to explain the information about this memory

07:43.190 --> 07:50.390
like total memory and then free and then the user and then available memory for use.

07:50.720 --> 07:53.200
OK let's talk about the last through here.

07:53.390 --> 07:59.150
The first part here reveals the ID that is the process id the process IDs are very important.

07:59.150 --> 08:02.770
Suppose you want to process then process.

08:02.800 --> 08:06.690
You need pro-white the process id come on.

08:06.890 --> 08:08.540
So the next part is the user.

08:08.600 --> 08:12.900
So it reveals that user information to which the process belongs.

08:13.050 --> 08:20.050
OK the next one is Pierre explains those top priority or shows us the priority of the process.

08:20.090 --> 08:21.690
The next one is Yanai.

08:21.740 --> 08:27.140
That is the nice value with the help of nice value we can set priorities.

08:27.410 --> 08:35.500
So we're going to learn about this in the next lesson or the next part the next is the Arti it shows

08:35.500 --> 08:39.870
us the total amount of memory limited by the process.

08:39.950 --> 08:40.440
OK.

08:40.550 --> 08:49.430
So the pressure on processors currently occupied thousand one hundred fifty two bytes of memory and

08:49.820 --> 08:50.690
the next part.

08:50.700 --> 08:58.400
So those are yes that is the resident memory resident memory the memory of which is actually user out

08:58.400 --> 09:00.090
of the hour.

09:00.280 --> 09:01.300
Ms.

09:01.370 --> 09:08.560
Plimmer memory and the next one is shared memory means the memory which is shared by this process other

09:08.700 --> 09:09.610
process.

09:09.750 --> 09:12.080
They are of the use of that memory.

09:12.200 --> 09:14.670
And the next part is as.

09:14.810 --> 09:17.930
Which explains all shows and the status of the process.

09:18.110 --> 09:22.020
R-Minn. said that is running as a means in the sleeping mode.

09:22.400 --> 09:28.830
If it shows zero that means it is a zombie process if its showing you the that mean it is clear signal

09:28.880 --> 09:35.590
or stop a process and if it shows your ID that means it needs an interrupt cable.

09:35.600 --> 09:36.690
Sleep OK.

09:36.730 --> 09:46.750
In this way the symbols reveals the status next door is CPQ the Sibiu part here shows us the amount

09:46.750 --> 09:50.890
of C.P. activities causer in the last quailing cycle.

09:51.430 --> 10:00.120
So what is all the cycle online cycle means the time in which a device or process monitored once ok

10:00.390 --> 10:02.210
and continuously.

10:02.210 --> 10:09.570
So in this way is use the information about the last polling cycle and then the next part is memory.

10:09.760 --> 10:14.970
So this is the percentage of memory that has used in the last billing cycle.

10:15.040 --> 10:21.670
The next one is the time this indicates the total amount of time that has used by the process since

10:21.670 --> 10:23.500
first it was started.

10:23.790 --> 10:25.660
Okay the next part is come on.

10:25.660 --> 10:26.260
Okay.

10:26.260 --> 10:29.950
So the process which is belong to which come on.

10:30.010 --> 10:32.130
So it gives information about it.

10:32.290 --> 10:40.650
So in this way you can monitor here all the information which is very essential as System Administrator.

10:40.990 --> 10:47.300
Suppose you want to kill a process then just press key on your keyboard.

10:47.470 --> 10:56.420
And here you can see it shows full persons IDs booty 1 7 so and will be 3 1 7.

10:56.630 --> 10:59.390
And he sent P.O.D..

10:59.480 --> 11:07.590
He wanted to signal the OK here you can see the come on top is stop here.

11:07.670 --> 11:11.970
When we send this number signal to this.

11:12.170 --> 11:12.760
OK.

11:12.980 --> 11:17.650
So there are different kinds of signals so that we're going to learn in the upcoming lesson.

11:17.930 --> 11:22.760
So there are some other things that you can't do that this stuff come on like this.

11:22.910 --> 11:29.760
You want to delay the output of these processes then you can delay it by pointing in seconds.

11:30.240 --> 11:31.910
Let's see the output.

11:32.070 --> 11:32.650
OK.

11:32.720 --> 11:38.420
You can see it showing the output with the delay of two seconds.

11:38.690 --> 11:40.440
Let's send it to zero.

11:40.790 --> 11:41.350
OK.

11:41.530 --> 11:45.050
And now here you can see how fast showing that look.

11:45.280 --> 11:46.040
OK.

11:46.250 --> 11:56.390
OK the next suit use Front be with this switch you can view a particular process that was three to go.

11:56.750 --> 11:59.740
But currently it's not showing anything here.

12:00.230 --> 12:07.520
But remember that with this you can view information about that particular process by sending here that

12:07.880 --> 12:18.160
process ID when you pass for B then it start or it shows the output in non indirect do more.

12:18.410 --> 12:22.370
OK let's see what is non-interactive more OK.

12:22.400 --> 12:25.740
Like this means we can't do anything here.

12:25.990 --> 12:37.580
It's continuously shows in this way the output to stop Press Control see it let's clear it up for you.

12:37.690 --> 12:42.910
You can view an information about a particular user like this.

12:43.180 --> 12:43.840
OK.

12:43.840 --> 12:50.380
So it's currently showing in the process initiated by the user Prashanth like this.

12:50.410 --> 12:52.370
Plus Control-C to stop.

12:52.680 --> 12:55.610
OK let's start again the top.

12:55.680 --> 13:03.180
Suppose you press there then you can see the output format of any press B.

13:03.250 --> 13:06.960
Then you can highlight it ok like this.

13:07.170 --> 13:14.060
In this way you can do a lot of more important information with the help of these commands.

13:14.170 --> 13:19.440
Next important come on the show is uptight.

13:19.660 --> 13:22.880
Use you the same information that we solve it.

13:22.880 --> 13:30.820
C'mon c'mon free it should you the same ought to be solved with the help of God.

13:30.820 --> 13:33.770
Come on about the computer memory.

13:34.050 --> 13:34.450
OK.

13:34.460 --> 13:41.500
In this way you can see the list of processes that are running on your system and you can see the amount

13:41.500 --> 13:45.030
of memory that is used by any particular process.

13:45.120 --> 13:53.110
Again with the help of that you can get to the point that which process is actually causing the problem.

13:53.110 --> 13:56.930
Like hanging your system or not turning in proper way.

13:57.300 --> 14:03.640
OK in the next lesson I'm going to show you how to set the priorities of the processes.

14:03.640 --> 14:06.940
Again with the help of nice and really nice.

14:06.940 --> 14:07.480
Come on.
