We're going to have a quick little session about command line and updating.
In this section, we're going to SSH into our server,
and we're going to mess around with the pihole command.
The pihole command is really useful.
If you want to see all the features, you can check out the documentation site.
You can do many of the same things you can do in the web interface,
but there is a steeper learning curve.
It's also great for troubleshooting and diagnostics of your Pi‑hole.
There's a couple of useful pihole commands.
First one is pihole status, which will tell you what's up and running,
or the pihole ‑up command, which is what you use to update to the latest version.
There's also pihole ‑g, which will update gravity or your adlists,
and also pihole ‑c,
which is a chronometer which can show all the different statistics,
temperature, RAM usage, as well as diagnostics,
which will run a full diagnostic report and show
everything that is configured on your Pi‑hole.
All right, time for the demo.
We're going to start up by remote accessing our Pi‑hole server by SSH.
I'm going to log in with my password, and we're in.
First thing I want to do is do the pihole command and see all
the different options we have available to us.
There's quite a few, so I encourage you to check up on the documentation,
become familiar with them.
The first command I'm going to run is pihole status,
which will show what's up and running and if Pi‑hole blocking is enabled.
The next one I'm going to run Pi‑hole ‑c, which is the chronometer.
This is similar to the thing in the top left corner
of the web interface showing CPU, RAM usage,
et cetera, as well as if it's active,
and it will show what is currently being blocked.
The next command we're going to run is pihole ‑d,
which is going to run that big diagnostic report and pull
all the configurations we have set up.
This does take a little bit, so I'm going to speed up the video.
When it's done, it's going to ask if you want to upload this to Pi‑hole.
I'm going to pick No,
but keep in mind that it is going to store it locally in your var/log directory.
Next is pihole ‑a, which is our admin features.
I'm going to change mine to use Fahrenheit because I'm located in the US.
All right, pretty simple.
The last thing we are going to do is pihole ‑g,
which is going to update our gravity or adlists.
This is the same thing you can do in the web interface by
going to Settings and Update Gravity.
This takes a little bit, so we're going to end the demo here.
That's it for this section.
In the next section,
we're going to be covering some advanced features that are
available in the Pi‑hole web interface.
I hope you'll join me.