From e549b852d7630b01497aaee5da4523b31fd8244b Mon Sep 17 00:00:00 2001 From: chunzhi Date: Mon, 29 Jul 2024 18:25:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20host.sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- host.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 host.sh diff --git a/host.sh b/host.sh new file mode 100644 index 0000000..f0f1efa --- /dev/null +++ b/host.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +# Redirect output to null to suppress echo output +echo "127.0.0.1 goedge.cloud" | sudo tee -a /etc/hosts > /dev/null +echo "127.0.0.1 goedge.cn" | sudo tee -a /etc/hosts > /dev/null +echo "127.0.0.1 dl.goedge.cloud" | sudo tee -a /etc/hosts > /dev/null +echo "127.0.0.1 dl.goedge.cn" | sudo tee -a /etc/hosts > /dev/null +echo "127.0.0.1 global.dl.goedge.cloud" | sudo tee -a /etc/hosts > /dev/null +echo "127.0.0.1 global.dl.goedge.cn" | sudo tee -a /etc/hosts > /dev/null + +# Display the contents of the /etc/hosts file +cat /etc/hosts