Created
June 20, 2022 04:49
-
-
Save hongkongkiwi/e9e118d32d9e129dcc6016cd0e76fd90 to your computer and use it in GitHub Desktop.
One liner to find the fastest ubuntu mirror
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -s http://mirrors.ubuntu.com/mirrors.txt | xargs -n1 -I {} sh -c 'echo `curl -r 0-102400 -s -w %{speed_download} -o /dev/null {}/ls-lR.gz` {}' | sort -g -r | head -1 | awk '{ print $2 }' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment