hostctl
Backup/Restore hosts file
You can save a copy of your hosts file with this command:
Command:
hostctl backup --path $HOME/hostctl/
It will create a file $HOME/hostctl/hosts.20200314
with the full content of your hosts file.
You can restore a previous backup of your hosts file with this command:
Command:
hostctl restore --from $HOME/hostctl/hosts.20200314
Last updated by Sven Luijten on August 20, 2023 at 10:27 +0200
Content