linux下查看下载和上传的网速,有的教程说要下载什么包,其实一行命令就可以解决
curl -s https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | python -
运行结果显示
Retrieving speedtest.net configuration...
Testing from China Education and Research Network Center (111.***.**.33)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by China Unicom FuJian (Fuzhou) [589.19 km]: 49.12 ms
Testing download speed................................................................................
Download: 21.46 Mbit/s
Testing upload speed................................................................................................
Upload: 20.09 Mbit/s
看出来上传速度和下载速度差不多都是20M/s,还不错。
terminal命令窗口位置
设置快捷键
setting-keyboard-command
/usr/bin/gnome-terminal