Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

NetSpeedTest

NetSpeedTest is a small shell script for quick command-line network speed checks.

It provides:

  • Download speed test (default)
  • Upload speed test
  • HTTP status and elapsed time output

Requirements

  • Linux (the script reads /proc/uptime)
  • curl
  • awk
  • dd

Usage

Run the default download test:

./netspeedtest.sh

Run the upload test:

./netspeedtest.sh -u

Show help:

./netspeedtest.sh -h

Quick download (curl)

Default download test

Download:

curl -fksSL https://raw.githubusercontent.com/pepa-cz/netspeedtest/main/netspeedtest.sh -o netspeedtest.sh
chmod +x netspeedtest.sh

Run:

./netspeedtest.sh

Upload test

Download:

curl -fksSL https://raw.githubusercontent.com/pepa-cz/netspeedtest/main/netspeedtest.sh -o netspeedtest.sh
chmod +x netspeedtest.sh

Run:

./netspeedtest.sh -u

How it works

  • Download test requests a 100MB file and calculates Mbps.
  • Upload test sends 64MB of generated data and calculates Mbps.
  • Output includes HTTP status, elapsed time, and measured speed.

Notes

  • Upload data is sent to a public endpoint: https://x0.at/.
  • Results are quick estimates and may vary with routing, server load, and network conditions.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages