OK, now it's time to talk about fight and command monitoring.
We already saw the comment command, and we used the Dutch five option to soar because by default,
it will show the last 10 lines.
Now that's five, it will show the last five lines.
Now using dash up option, this will open the file and will keep monitoring it.
OK, so for example, if you want to check for access logs, so VAR log apache2 and access, by the
way, I don't have a you here.
And I think for now, let's open it.
No problem.
So systemctl status apache2, you can see it is running.
So now let's bring the local IP like this.
Or actually, let's use the curve command, whatever for me for now as TB and put this one, as you
can see.
You can see that.
Here it is.
Now if I.
Check again, the VAR log.
You can see that we should have actually see.
Look, you can see that.
Here it is.
OK.
No British intervention in Darfur.
Now let's from here right-click split terminal vertically.
OK, now here on the second one.
Let's use again the kill command.
OK.
So kill actually is just like using the browser.
It will, as you can see here, if I Mankell or see you are allowed to transfer a URL, so so to transfer
data using a specific protocol or to access specific and check a specific connection to the website,
so can actually be one two seven two zero zero one, which is the local host.
Press enter.
You can see that we have another access.
So this is why using the dash options, using the tin, as you can see.
OK, now we have another command called Watch.
OK.
And this watch to see the number of fights.
So you can see that, for example, if I run this tail, but without using the dash of option like this,
I want to keep running it to check if there is a problem or not.
Is there any axis or suspicious access now when instead of doing that over and over, we can put before
it there?
Watch Dash and and one and press enter.
This is.
This will keep updated then when and which means the number OK, number of seconds.
This will keep updating this command every one second.
So instead of typing it over and over, over and over, just watch Dash and the number of is seconds
is one and keep it as it will keep popping.
OK, now in our case for the tail, actually, tail is better because tail is really tiny, after all,
but their watch this is used with another scenario.
For example, you are writing to a file, you are doing some stuff.
Whatever.
OK, well, it depends on you what you prefer.
Use it as you want.
OK.