直接使用 curl 和 python 快速完成網路測速的指令
建立一個 shell script speedtest.sh
speedtest.sh
內容為
#!/bin/bash curl -s https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | python -
設定為可執行
chmod +x speedtest.sh
./speedtest.sh
preview: