wget -O speedtest-cli https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py --no-check-certificate
chmod +x speedtest-cli
./speedtest-cli

[root@localhost ~]# ./speedtest-cli --help

usage: speedtest-cli [-h] [--no-download] [--no-upload] [--bytes] [--share]
[--simple] [--csv] [--csv-delimiter CSV_DELIMITER]
[--csv-header] [--json] [--list] [--server SERVER]
[--exclude EXCLUDE] [--mini MINI] [--source SOURCE]
[--timeout TIMEOUT] [--secure] [--no-pre-allocate]
[--version]

Command line interface for testing internet bandwidth using speedtest.net.
--------------------------------------------------------------------------
https://github.com/sivel/speedtest-cli

optional arguments:
-h, --help show this help message and exit
--no-download Do not perform download test
--no-upload Do not perform upload test
--bytes Display values in bytes instead of bits. Does not
affect the image generated by --share, nor output from
--json or --csv
--share Generate and provide a URL to the speedtest.net share
results image, not displayed with --csv
--simple Suppress verbose output, only show basic information
--csv Suppress verbose output, only show basic information
in CSV format. Speeds listed in bit/s and not affected
by --bytes
--csv-delimiter CSV_DELIMITER
Single character delimiter to use in CSV output.
Default ","
--csv-header Print CSV headers
--json Suppress verbose output, only show basic information
in JSON format. Speeds listed in bit/s and not
affected by --bytes
--list Display a list of speedtest.net servers sorted by
distance
--server SERVER Specify a server ID to test against. Can be supplied
multiple times
--exclude EXCLUDE Exclude a server from selection. Can be supplied
multiple times
--mini MINI URL of the Speedtest Mini server
--source SOURCE Source IP address to bind to
--timeout TIMEOUT HTTP timeout in seconds. Default 10
--secure Use HTTPS instead of HTTP when communicating with
speedtest.net operated servers
--no-pre-allocate Do not pre allocate upload data. Pre allocation is
enabled by default to improve upload performance. To
support systems with insufficient memory, use this
option to avoid a MemoryError
--version Show the version number and exit

 
example:
./speedtest-ctl --list | grep 4515
./speedtest-ctl --server 4515

最新文章

  1. PHP日期与时间
  2. 轻量级IOC框架:Ninject (下)
  3. ASP.NET MVC 使用 IOC框架 AutoFac 自动释放数据库资源
  4. c# ReaderWriterLock类
  5. 2013年优秀jQuery插件
  6. Linux数组array基础
  7. Android显示系统设计框架介绍
  8. 1cocos2dx扩展UI控制,CCControlSlider,CCScale9Sprite(九妹图。),CCControlSwitch,CCControlButton
  9. http长连接与短连接
  10. ASP.Net Core的Code Fist代码先行操作方法
  11. 【伯乐在线】100个高质量Java开发者博客
  12. C++_day8_ 多重继承、钻石继承和虚继承
  13. flagr a/b 测试特性开关&&微服务动态配置工具
  14. [转帖]linux tree命令--显示目录的树形结构
  15. AutoBat
  16. ASP.NET的内置对象 —— Request 对象
  17. C/S程序的一般流程和基本socket函数
  18. 使用gunzip、tar、rar、(zip压缩和unzip解压缩)
  19. kubernetes源码分析 -- kube-proxy
  20. Mybatis 针对ORACLE和MYSQL的批量插入与多参数批量删除

热门文章

  1. 使用线程操作刷新Winform界面
  2. Day5_Py模块_1
  3. winfrom程序文本框第一次选中问题
  4. react-redux-action
  5. django的ORM
  6. 13. Roman to Integer ★
  7. raft共识算法
  8. union 和struct大小计算
  9. centos 远程授权
  10. Problem 4: Largest palindrome product