1
00:00:00,330 --> 00:00:03,390
OK, now it's time to talk about fight and command monitoring.

2
00:00:04,520 --> 00:00:11,540
We already saw the comment command, and we used the Dutch five option to soar because by default,

3
00:00:12,380 --> 00:00:15,890
it will show the last 10 lines.

4
00:00:16,040 --> 00:00:18,890
Now that's five, it will show the last five lines.

5
00:00:19,130 --> 00:00:24,140
Now using dash up option, this will open the file and will keep monitoring it.

6
00:00:24,470 --> 00:00:33,500
OK, so for example, if you want to check for access logs, so VAR log apache2 and access, by the

7
00:00:33,500 --> 00:00:35,370
way, I don't have a you here.

8
00:00:35,750 --> 00:00:38,170
And I think for now, let's open it.

9
00:00:38,180 --> 00:00:38,720
No problem.

10
00:00:38,960 --> 00:00:43,400
So systemctl status apache2, you can see it is running.

11
00:00:43,730 --> 00:00:50,210
So now let's bring the local IP like this.

12
00:00:50,960 --> 00:00:58,070
Or actually, let's use the curve command, whatever for me for now as TB and put this one, as you

13
00:00:58,070 --> 00:00:58,550
can see.

14
00:01:00,280 --> 00:01:01,210
You can see that.

15
00:01:01,240 --> 00:01:01,870
Here it is.

16
00:01:02,260 --> 00:01:03,280
Now if I.

17
00:01:04,330 --> 00:01:06,240
Check again, the VAR log.

18
00:01:06,670 --> 00:01:09,100
You can see that we should have actually see.

19
00:01:12,470 --> 00:01:14,280
Look, you can see that.

20
00:01:14,300 --> 00:01:14,870
Here it is.

21
00:01:14,900 --> 00:01:15,350
OK.

22
00:01:16,190 --> 00:01:17,840
No British intervention in Darfur.

23
00:01:17,880 --> 00:01:23,030
Now let's from here right-click split terminal vertically.

24
00:01:23,060 --> 00:01:25,310
OK, now here on the second one.

25
00:01:26,280 --> 00:01:29,090
Let's use again the kill command.

26
00:01:29,190 --> 00:01:29,640
OK.

27
00:01:30,000 --> 00:01:33,600
So kill actually is just like using the browser.

28
00:01:33,720 --> 00:01:41,340
It will, as you can see here, if I Mankell or see you are allowed to transfer a URL, so so to transfer

29
00:01:41,340 --> 00:01:48,470
data using a specific protocol or to access specific and check a specific connection to the website,

30
00:01:48,480 --> 00:01:54,360
so can actually be one two seven two zero zero one, which is the local host.

31
00:01:54,780 --> 00:01:55,830
Press enter.

32
00:01:55,950 --> 00:01:58,230
You can see that we have another access.

33
00:01:58,470 --> 00:02:03,360
So this is why using the dash options, using the tin, as you can see.

34
00:02:03,780 --> 00:02:06,360
OK, now we have another command called Watch.

35
00:02:06,600 --> 00:02:07,080
OK.

36
00:02:07,320 --> 00:02:10,470
And this watch to see the number of fights.

37
00:02:10,470 --> 00:02:18,540
So you can see that, for example, if I run this tail, but without using the dash of option like this,

38
00:02:18,930 --> 00:02:23,340
I want to keep running it to check if there is a problem or not.

39
00:02:23,780 --> 00:02:31,080
Is there any axis or suspicious access now when instead of doing that over and over, we can put before

40
00:02:31,080 --> 00:02:31,730
it there?

41
00:02:31,740 --> 00:02:36,390
Watch Dash and and one and press enter.

42
00:02:36,930 --> 00:02:37,410
This is.

43
00:02:38,610 --> 00:02:43,350
This will keep updated then when and which means the number OK, number of seconds.

44
00:02:43,620 --> 00:02:48,330
This will keep updating this command every one second.

45
00:02:48,720 --> 00:02:56,310
So instead of typing it over and over, over and over, just watch Dash and the number of is seconds

46
00:02:56,310 --> 00:02:59,880
is one and keep it as it will keep popping.

47
00:03:00,330 --> 00:03:05,940
OK, now in our case for the tail, actually, tail is better because tail is really tiny, after all,

48
00:03:06,330 --> 00:03:09,840
but their watch this is used with another scenario.

49
00:03:10,500 --> 00:03:15,210
For example, you are writing to a file, you are doing some stuff.

50
00:03:15,220 --> 00:03:15,800
Whatever.

51
00:03:15,810 --> 00:03:18,890
OK, well, it depends on you what you prefer.

52
00:03:19,410 --> 00:03:21,090
Use it as you want.

53
00:03:21,600 --> 00:03:21,830
OK.

