chore: revised the command options

This commit is contained in:
Michele Cereda
2023-09-19 23:31:18 +02:00
parent 66428e7670
commit 24c46ba668

View File

@@ -1,4 +1,4 @@
# Pihole # The `pihole` command
## Table of contents <!-- omit in toc --> ## Table of contents <!-- omit in toc -->
@@ -14,30 +14,54 @@ pihole status
# Temporarily disable blocking. # Temporarily disable blocking.
pihole disable '5m' pihole disable '5m'
# Follow the logs in real-time. # Follow the query logs in real-time.
pihole tail pihole tail
pihole -t
# Set or change the Web Interface's password. # Set or change the Web Interface's password.
pihole -a -p pihole -a -p
pihole -a -p 'new-password' pihole -a -p 'new-password'
# Show Chronometer, the console dashboard of real-time stats.
pihole -c
# Show Chronometer and exit.
pihole -c -e
# Empty Pi-hole's logs.
pihole flush
# Update Graviton's DB. # Update Graviton's DB.
pihole updateGravity
pihole -g pihole -g
# Backup all settings and the configuration. # Show Chronometer, the console dashboard of real-time stats.
# Without a path, the backup will be created in the current directory. # Live updates.
pihole -c
# Show Chronometer once, then exit.
pihole -c -e
# Empty Pi-hole's query log.
# Effectively truncates '/var/log/pihole/pihole.log'.
pihole flush
# Backup all settings and the configuration in the current directory.
# The resulting archive can be imported using the Settings > Teleport webpage. # The resulting archive can be imported using the Settings > Teleport webpage.
pihole admin teleporter
pihole -a -t pihole -a -t
# Backup all settings and the configuration to the specified file.
pihole admin teleporter 'path/to/backup/file.tar.gz'
pihole -a -t 'path/to/backup/file.tar.gz' pihole -a -t 'path/to/backup/file.tar.gz'
# Fully restart Pi-hole's subsystems.
pihole restartdns
# Update the lists and flush the cache *without* restarting the DNS server.
pihole restartdns reload
# Update the lists, but do not flush the cache nor restart the DNS server.
pihole restartdns reload-lists
# Reconfigure or Repair the subsystems.
pihole reconfigure
pihole -r
# Check updates.
pihole updatePihole --check-only
pihole -up --check-only
``` ```
## Further readings ## Further readings