WEBVTT - This file was automatically generated by VIMEO

0
00:00:13.200 --> 00:00:16.900
Hello everyone and welcome

1
00:00:16.900 --> 00:00:17.800
 to this video.

2
00:00:18.600 --> 00:00:22.000
In this video. We are going to see the process Management

3
00:00:21.500 --> 00:00:25.200
 in Linux. So in case

4
00:00:24.200 --> 00:00:27.600
 you want to see any processes that

5
00:00:27.600 --> 00:00:30.500
 has been running into your Linux operating

6
00:00:30.500 --> 00:00:33.200
 system, then you can simply use the command which is

7
00:00:33.200 --> 00:00:34.100
 PS.

8
00:00:34.700 --> 00:00:36.200
PS stands for process

9
00:00:37.200 --> 00:00:40.300
As you can see this is the output which gives you

10
00:00:40.300 --> 00:00:44.000
 the PID, which is the process ID attached

11
00:00:43.500 --> 00:00:46.400
 to that particular process, which is

12
00:00:46.400 --> 00:00:50.000
 a number you can also see that TTY time

13
00:00:49.600 --> 00:00:51.700
 and the CMD.

14
00:00:52.700 --> 00:00:55.600
Alright, so this is the output of

15
00:00:55.600 --> 00:00:58.800
 the PS command now in case

16
00:00:58.800 --> 00:01:01.500
 you want to see all the processes that are being

17
00:01:01.500 --> 00:01:04.900
 running in the background. You can simply type PS

18
00:01:04.900 --> 00:01:07.700
 space - EF and

19
00:01:07.700 --> 00:01:10.500
 it is going to give you the list of all the

20
00:01:10.500 --> 00:01:11.000
 processes.

21
00:01:11.800 --> 00:01:14.500
Similarly, you can use the command which is

22
00:01:14.500 --> 00:01:17.900
 PS aux and it will give you the similar

23
00:01:17.900 --> 00:01:19.600
 output now remember?

24
00:01:20.400 --> 00:01:22.700
when you type the command PS aux

25
00:01:23.200 --> 00:01:26.600
here a stands for to show all

26
00:01:26.600 --> 00:01:30.100
 the processes for all users U stands

27
00:01:29.100 --> 00:01:33.100
 for display the processes users or

28
00:01:32.100 --> 00:01:35.900
 owner and X stands

29
00:01:35.900 --> 00:01:38.400
 for to show the processes which are not

30
00:01:38.400 --> 00:01:41.500
 been attached to the terminal which basically

31
00:01:41.500 --> 00:01:44.500
 means you are able to see all the processes that are

32
00:01:44.500 --> 00:01:47.300
 being running into the background as well all so to

33
00:01:47.300 --> 00:01:47.700
 note.

34
00:01:48.400 --> 00:01:51.800
PS space - EF and PS aux

35
00:01:51.800 --> 00:01:54.300
 both exactly gives the same

36
00:01:54.300 --> 00:01:55.000
 output.

37
00:01:55.900 --> 00:01:58.500
That's why I have shown both the commands

38
00:01:58.500 --> 00:02:01.800
 over here. Alright, so let's quickly run

39
00:02:01.800 --> 00:02:04.500
 Nano XYZ and quickly start

40
00:02:04.500 --> 00:02:07.600
 a new process. So you can see I

41
00:02:07.600 --> 00:02:11.100
 have opened up the Nano terminal and obviously

42
00:02:10.100 --> 00:02:13.300
 if we start any command

43
00:02:13.300 --> 00:02:16.500
 it is going to run a process and a new

44
00:02:16.500 --> 00:02:19.900
 process ID is going to get assigned to

45
00:02:19.900 --> 00:02:22.100
 that process. Let's quickly verify that

46
00:02:22.100 --> 00:02:24.300
 let's go into a new terminal.

47
00:02:25.100 --> 00:02:28.700
And type the command + ox and here we

48
00:02:28.700 --> 00:02:32.400
 are going to grab which is basically filter the

49
00:02:31.400 --> 00:02:34.800
 process name, which is nano

50
00:02:34.800 --> 00:02:36.200
 and hit enter.

51
00:02:37.300 --> 00:02:40.400
And you can see over here here is the process which

52
00:02:40.400 --> 00:02:43.600
 is being running. So the command that we executed was

53
00:02:43.600 --> 00:02:46.200
 Nano XYZ and the

54
00:02:46.200 --> 00:02:49.200
 process ID that has been assigned to

55
00:02:49.200 --> 00:02:52.900
 this process is 9 1 0 3

56
00:02:52.900 --> 00:02:55.900
 a perfect till here now. Let's

57
00:02:55.900 --> 00:02:59.000
 see a new command which is kill using

58
00:02:58.200 --> 00:03:01.900
 this command. We can kill any process

59
00:03:01.900 --> 00:03:04.200
 that has been running. So let's

60
00:03:04.200 --> 00:03:07.700
 quickly kill the process that is nano XY

61
00:03:07.700 --> 00:03:09.900
 said which is open over here.

62
00:03:11.200 --> 00:03:14.700
So we have copied the process ID and hit enter and

63
00:03:14.700 --> 00:03:17.500
 this should kill the process and you can see we got

64
00:03:17.500 --> 00:03:20.400
 error which says received signal Hub

65
00:03:20.400 --> 00:03:23.500
 or signal term. This basically means

66
00:03:23.500 --> 00:03:26.200
 the process has been terminated. I hope you

67
00:03:26.200 --> 00:03:29.500
 guys understood how you can see the processes which

68
00:03:29.500 --> 00:03:32.600
 have been running using the PS aux command and how

69
00:03:32.600 --> 00:03:34.400
 you can kill processes. Thank you.
