1 00:00:00,370 --> 00:00:05,650 Right now, it's time to talk about the processes and the jobs in the background or foreground jobs. 2 00:00:05,670 --> 00:00:11,190 OK, now for the to see all the processes, actually, we are using the first thing, the best command, 3 00:00:11,220 --> 00:00:12,590 so you can see the best command. 4 00:00:12,600 --> 00:00:17,400 It will show me some commands that are running the ID, the type that are used. 5 00:00:17,400 --> 00:00:20,300 By the way, this is the teletype from the pits. 6 00:00:20,340 --> 00:00:21,300 You can read more about it. 7 00:00:22,110 --> 00:00:23,310 I recommend you to read about it. 8 00:00:24,360 --> 00:00:28,980 But actually, this is something I'm theory, it will not make a difference for you, to be honest, 9 00:00:29,220 --> 00:00:37,950 but it is good to have what is TDY or how a small brief history about the tribe fits something like 10 00:00:37,950 --> 00:00:38,170 that. 11 00:00:38,220 --> 00:00:44,040 OK, this is the time, the system that is used now we have other options, which is Dashi, which is 12 00:00:44,040 --> 00:00:44,640 everything. 13 00:00:44,850 --> 00:00:51,870 So if I press it like that, you can see it will start showing every command I have on the whole system. 14 00:00:51,900 --> 00:00:58,450 OK, the idea this is the idea that are being used, the time that seemed as well. 15 00:00:58,680 --> 00:01:05,220 Now, if you want to see a full information, which is Desh of the ECF, which means full of information 16 00:01:05,550 --> 00:01:13,610 that the user the idea, let's have a look at their ID, which is the parent I did. 17 00:01:14,130 --> 00:01:18,900 So here sees this time that y times. 18 00:01:19,350 --> 00:01:20,400 OK, whatever. 19 00:01:20,830 --> 00:01:29,100 OK, now if I want to see information about a specific user, so what are the processes for a specific 20 00:01:29,100 --> 00:01:29,340 user. 21 00:01:29,340 --> 00:01:34,980 So you can see that here for this, which is the deputy data here, the Ubuntu here is the root, here 22 00:01:34,980 --> 00:01:35,880 is the map or whatever. 23 00:01:36,180 --> 00:01:41,790 Now what if I want to see everything for Ubuntu so I can just provide the Deshu option? 24 00:01:41,790 --> 00:01:43,650 By the way, it's very simple. 25 00:01:44,070 --> 00:01:46,890 Ubuntu, which is the name of the user and presenter. 26 00:01:46,980 --> 00:01:52,200 OK, so you can see that I want to use one has only the following processes. 27 00:01:52,230 --> 00:01:52,590 OK. 28 00:01:53,580 --> 00:01:55,800 And if I see for Ruth, for example. 29 00:01:57,360 --> 00:02:04,470 It will show me, as with everything here is forward, if I type Deshu and if I type dash of fear, 30 00:02:04,860 --> 00:02:10,740 you can see it will show forward only and for for as a full information. 31 00:02:10,770 --> 00:02:16,970 OK, the Pied Piper did I name the last the command, whatever. 32 00:02:17,050 --> 00:02:18,260 OK, all right. 33 00:02:18,570 --> 00:02:25,860 Now in Windows we have something called task manager to see the task can remove or actually it has a 34 00:02:25,860 --> 00:02:28,170 lot features, monitor whatever. 35 00:02:28,410 --> 00:02:34,380 Now in this or the in Linux we have something called top or at the top. 36 00:02:34,380 --> 00:02:41,610 Actually it show you as you can see, here is the task, the number of procedures that the memory, 37 00:02:41,610 --> 00:02:42,070 whatever. 38 00:02:42,360 --> 00:02:44,760 And actually I refer to that much. 39 00:02:44,760 --> 00:02:49,910 I prefer archtop actually, because on the other hand, it is more elegant. 40 00:02:49,920 --> 00:02:53,100 So you can see archtop is more elegant. 41 00:02:53,100 --> 00:02:58,560 Give you information about the memory resources average, ablate average. 42 00:02:58,560 --> 00:03:06,930 You can see that the average and the tasks and the how much ram I have on the server will the utilization 43 00:03:06,930 --> 00:03:07,460 and so on. 44 00:03:07,650 --> 00:03:13,230 And by the way, the command they use out of that Pidd, everything is higher actually, as you can 45 00:03:13,230 --> 00:03:14,920 see, which is something very powerful. 46 00:03:14,920 --> 00:03:16,460 BOFUR So far, so good. 47 00:03:16,680 --> 00:03:18,060 Now enough with the process. 48 00:03:18,270 --> 00:03:22,110 Let's talk about how to run a specific commands in the background. 49 00:03:22,530 --> 00:03:29,790 So actually I have this command, for example, the chef, and if I run it, it will still building 50 00:03:29,790 --> 00:03:30,760 on that front. 51 00:03:30,810 --> 00:03:33,120 OK, so I cannot put anything here so you can see that. 52 00:03:33,980 --> 00:03:39,710 As you can see, I cannot put any comment from own, so now this is just an example, by the way, we 53 00:03:39,710 --> 00:03:42,800 don't use in that way, by the way. 54 00:03:43,190 --> 00:03:49,300 But for example, you have a specific BASHE script that's running and building on the standard output 55 00:03:49,580 --> 00:03:50,130 like this. 56 00:03:50,660 --> 00:03:56,180 So in that case, it's better to run it in the background, which is like this hotel, which is our 57 00:03:56,180 --> 00:04:03,410 example, dash and shift seven, which means that emberson like that, this means that this command 58 00:04:03,410 --> 00:04:04,640 will be running in the background. 59 00:04:06,110 --> 00:04:06,960 Yeah, cool. 60 00:04:07,310 --> 00:04:08,460 Now we have it here. 61 00:04:08,660 --> 00:04:13,190 So, by the way, you can see that we have two numbers, which is this one in the square brackets and 62 00:04:13,190 --> 00:04:16,860 this one, by the way, this one is the idea for this thing. 63 00:04:17,420 --> 00:04:23,720 So if I type this and let's use the grip with the pipeline, it's a good practice to see that, actually. 64 00:04:24,020 --> 00:04:25,100 So one five. 65 00:04:26,470 --> 00:04:32,860 Nine and Lizzi, yeah, it is here, this it is, and you can see that it is deathin. 66 00:04:33,850 --> 00:04:34,710 Which is the deal? 67 00:04:35,770 --> 00:04:36,810 OK, cool. 68 00:04:37,450 --> 00:04:43,230 Now, what if I want to stop to stop this comment actually or to want to kill it? 69 00:04:43,660 --> 00:04:45,550 I didn't need it anymore how to do such a thing? 70 00:04:45,580 --> 00:04:46,740 Well, actually, we have to wait. 71 00:04:46,750 --> 00:04:54,470 Either using the kill command or we can use that BGI or the AFG then control. 72 00:04:54,600 --> 00:05:00,310 See, to interrupt such controversy, as you can see, to interrupt control to exist but don't exist, 73 00:05:00,340 --> 00:05:04,820 it will exist from the shell and be careful and control it. 74 00:05:04,900 --> 00:05:06,870 It will be sub specific. 75 00:05:06,880 --> 00:05:08,470 Proceed or suspended by the way. 76 00:05:08,710 --> 00:05:09,190 All right. 77 00:05:09,610 --> 00:05:18,190 Now let's start with the circle and then provide dash, then provide that number of the signal and how 78 00:05:18,190 --> 00:05:19,440 to know the number of the signal. 79 00:05:19,870 --> 00:05:20,690 But for now. 80 00:05:20,690 --> 00:05:22,800 But is a kill shell. 81 00:05:23,020 --> 00:05:25,450 And here you can see that we have all the signals. 82 00:05:25,450 --> 00:05:32,900 We have stickup sexer count, interrupt, kill terror, whatever, OK. 83 00:05:33,300 --> 00:05:40,120 Actually, the most important ones is the one which is six, which means that wait until until the process 84 00:05:40,120 --> 00:05:43,630 complete its work, then kill it, which means hang up first. 85 00:05:44,320 --> 00:05:46,600 Then we have the kill. 86 00:05:47,920 --> 00:05:48,220 Yeah. 87 00:05:48,220 --> 00:05:52,390 Whatever it is Yamhill which is nine and we have the term which is 15. 88 00:05:52,630 --> 00:05:54,310 OK, these are the most important. 89 00:05:54,310 --> 00:05:56,340 But these are not just these few. 90 00:05:56,350 --> 00:05:57,610 We have a trap. 91 00:05:57,970 --> 00:06:03,430 We have oh we have a lot of things that I recommend you to read more about it if you are interested. 92 00:06:03,640 --> 00:06:08,960 But in my guess, I would say that's nine and then provide that idea. 93 00:06:09,130 --> 00:06:11,950 And by the way, the idea I will just copy and paste it. 94 00:06:14,370 --> 00:06:19,320 Like this or the name of the process, which is done in my case, but it is better or a good practice 95 00:06:19,320 --> 00:06:21,860 to have it as a not as a name. 96 00:06:22,110 --> 00:06:22,890 So here. 97 00:06:24,030 --> 00:06:28,470 As you can see, no, if I put the group comment again, which is this one. 98 00:06:29,670 --> 00:06:36,930 You can see that it is now, as you can see previously, it was stopped because it is running in the 99 00:06:36,930 --> 00:06:37,450 background. 100 00:06:37,470 --> 00:06:39,950 It was struck and here but here is killed. 101 00:06:40,230 --> 00:06:46,300 So if I type the comment again, you can see that it is not existed anymore. 102 00:06:46,500 --> 00:06:49,440 So wait for it, then it will kill it. 103 00:06:49,440 --> 00:06:49,810 Killed it. 104 00:06:50,130 --> 00:06:50,600 All right. 105 00:06:50,970 --> 00:06:51,940 So far, so good. 106 00:06:52,920 --> 00:07:01,350 OK, now let's run this comment again, David, chef, underscore the ampersand, let's check it, which 107 00:07:01,350 --> 00:07:07,480 is that B.S. Dashi grip and what I did. 108 00:07:08,190 --> 00:07:10,290 Yeah, you can see it is here and stopped. 109 00:07:10,470 --> 00:07:13,590 So this time if I kill it, Desh 15. 110 00:07:15,530 --> 00:07:16,940 And what that did. 111 00:07:18,510 --> 00:07:23,150 And let's have a grip, you can see that it is here, it is waiting. 112 00:07:23,160 --> 00:07:29,090 So if I wait a little bit and if I run this command, you can see that it didn't hit it immediately. 113 00:07:29,280 --> 00:07:34,020 So here Dash nine, which means force kid but 15 here. 114 00:07:34,230 --> 00:07:37,890 So actually, it is used sometimes with some software or programs. 115 00:07:38,310 --> 00:07:41,280 So you can see, yeah, it is still here. 116 00:07:41,310 --> 00:07:44,790 So again, let's it using dash or actually we need it. 117 00:07:45,120 --> 00:07:51,660 We want to learn that other things now again, we already saw what is this number, which is the idea. 118 00:07:51,660 --> 00:07:52,550 But what is this. 119 00:07:53,130 --> 00:07:58,350 This is the number for the job, which means that we have this as a second job or the index. 120 00:07:58,590 --> 00:08:00,210 So if I take the combat jobs. 121 00:08:01,480 --> 00:08:06,490 It will bring all the jobs I have, by the way, I have already this one, so this is the second one, 122 00:08:06,520 --> 00:08:11,180 as you can see, the number of job which is to stopped and take Duceppe. 123 00:08:11,340 --> 00:08:13,280 OK, which is the comment. 124 00:08:13,600 --> 00:08:15,660 No, if I use the big. 125 00:08:16,900 --> 00:08:23,530 And the number of the job, this means that this job will go to the background, so you can see that 126 00:08:23,830 --> 00:08:26,980 now if I type jobs, you can see that it is terminated. 127 00:08:28,030 --> 00:08:33,580 Because we already sent the signal, which is, by the way, you remember when we type that where it 128 00:08:33,580 --> 00:08:33,790 is. 129 00:08:34,300 --> 00:08:40,610 Yeah, here, kill Dash 15, we killed it on the spot using the signal sector. 130 00:08:41,290 --> 00:08:42,730 Know if I want to go it. 131 00:08:43,030 --> 00:08:48,030 So, by the way, if I type jobs again, you can see that now it is removed, by the way. 132 00:08:48,490 --> 00:08:48,820 Yeah. 133 00:08:48,820 --> 00:08:50,440 Because we we terminated. 134 00:08:50,710 --> 00:08:55,960 OK, now if I go to EFG this time I will not use big F one. 135 00:08:56,440 --> 00:09:03,370 You can see that this means that photograph B.G. means background of G and the number of the job which 136 00:09:03,370 --> 00:09:03,850 is this one. 137 00:09:04,120 --> 00:09:05,830 It will go for grumped. 138 00:09:06,190 --> 00:09:09,580 This means that it will be going here. 139 00:09:09,610 --> 00:09:12,910 So if I controversy it would interrupt and it will kill this process. 140 00:09:13,180 --> 00:09:18,220 But if I tight controls it, by the way, we already saw the controversy, but if I type it, it will 141 00:09:18,220 --> 00:09:18,820 suspend it. 142 00:09:19,420 --> 00:09:25,320 Suspend it means that if I have the jobs again jobs command you can see it is stopped. 143 00:09:25,360 --> 00:09:28,570 So a big one and then jobs again. 144 00:09:28,840 --> 00:09:31,810 You can see that here it is here, but it is stopped currently. 145 00:09:32,110 --> 00:09:32,830 We don't have it. 146 00:09:33,490 --> 00:09:37,420 So if I go again inside EFG and then the one. 147 00:09:38,310 --> 00:09:44,210 And if I click controversy, it will be killed, I guess the CIA, it will be killed. 148 00:09:44,460 --> 00:09:44,910 All right. 149 00:09:45,210 --> 00:09:46,020 Thanks for watching.