WEBVTT

00:00:00.180 --> 00:00:02.600
We're going to have a quick little session about command line and updating.

00:00:02.600 --> 00:00:06.620
In this section, we're going to SSH into our server,

00:00:07.480 --> 00:00:09.520
and we're going to mess around with the pihole command.

00:00:10.600 --> 00:00:12.470
The pihole command is really useful.

00:00:12.560 --> 00:00:15.670
If you want to see all the features, you can check out the documentation site.

00:00:15.670 --> 00:00:19.060
You can do many of the same things you can do in the web interface,

00:00:19.110 --> 00:00:20.790
but there is a steeper learning curve.

00:00:21.110 --> 00:00:24.190
It's also great for troubleshooting and diagnostics of your Pi‑hole.

00:00:26.370 --> 00:00:28.130
There's a couple of useful pihole commands.

00:00:28.710 --> 00:00:31.360
First one is pihole status, which will tell you what's up and running,

00:00:33.530 --> 00:00:37.510
or the pihole ‑up command, which is what you use to update to the latest version.

00:00:38.080 --> 00:00:41.250
There's also pihole ‑g, which will update gravity or your adlists,

00:00:41.250 --> 00:00:43.410
and also pihole ‑c,

00:00:43.550 --> 00:00:47.100
which is a chronometer which can show all the different statistics,

00:00:47.200 --> 00:00:50.270
temperature, RAM usage, as well as diagnostics,

00:00:50.380 --> 00:00:52.530
which will run a full diagnostic report and show

00:00:52.540 --> 00:00:54.560
everything that is configured on your Pi‑hole.

00:00:54.870 --> 00:00:56.600
All right, time for the demo.

00:00:56.600 --> 00:01:02.480
We're going to start up by remote accessing our Pi‑hole server by SSH.

00:01:02.480 --> 00:01:06.540
I'm going to log in with my password, and we're in.

00:01:06.540 --> 00:01:10.260
First thing I want to do is do the pihole command and see all

00:01:10.260 --> 00:01:12.190
the different options we have available to us.

00:01:12.460 --> 00:01:15.250
There's quite a few, so I encourage you to check up on the documentation,

00:01:15.260 --> 00:01:16.420
become familiar with them.

00:01:19.590 --> 00:01:22.270
The first command I'm going to run is pihole status,

00:01:22.370 --> 00:01:25.230
which will show what's up and running and if Pi‑hole blocking is enabled.

00:01:25.230 --> 00:01:31.840
The next one I'm going to run Pi‑hole ‑c, which is the chronometer.

00:01:32.340 --> 00:01:34.520
This is similar to the thing in the top left corner

00:01:34.520 --> 00:01:37.770
of the web interface showing CPU, RAM usage,

00:01:37.800 --> 00:01:39.950
et cetera, as well as if it's active,

00:01:40.020 --> 00:01:42.450
and it will show what is currently being blocked.

00:01:44.490 --> 00:01:47.140
The next command we're going to run is pihole ‑d,

00:01:47.150 --> 00:01:50.370
which is going to run that big diagnostic report and pull

00:01:50.370 --> 00:01:52.380
all the configurations we have set up.

00:01:52.480 --> 00:01:54.870
This does take a little bit, so I'm going to speed up the video.

00:01:55.560 --> 00:01:58.180
When it's done, it's going to ask if you want to upload this to Pi‑hole.

00:01:58.330 --> 00:01:59.500
I'm going to pick No,

00:01:59.540 --> 00:02:03.080
but keep in mind that it is going to store it locally in your var/log directory.

00:02:05.070 --> 00:02:07.940
Next is pihole ‑a, which is our admin features.

00:02:08.199 --> 00:02:11.670
I'm going to change mine to use Fahrenheit because I'm located in the US.

00:02:12.770 --> 00:02:14.420
All right, pretty simple.

00:02:15.750 --> 00:02:18.280
The last thing we are going to do is pihole ‑g,

00:02:18.280 --> 00:02:21.140
which is going to update our gravity or adlists.

00:02:21.720 --> 00:02:24.030
This is the same thing you can do in the web interface by

00:02:24.030 --> 00:02:25.770
going to Settings and Update Gravity.

00:02:26.690 --> 00:02:28.910
This takes a little bit, so we're going to end the demo here.

00:02:31.160 --> 00:02:32.380
That's it for this section.

00:02:33.190 --> 00:02:33.780
In the next section,

00:02:33.780 --> 00:02:35.800
we're going to be covering some advanced features that are

00:02:35.800 --> 00:02:37.870
available in the Pi‑hole web interface.

00:02:38.050 --> 00:02:38.960
I hope you'll join me.
