To check the file transfer speed in Linux, you can use the iperf
tool.
To install iperf
, open a terminal and run:
sudo apt-get install iperf
To use iperf
, you will need to run it in server mode on one machine, and in client mode on the other machine.
On the machine that will act as the server, run the following command:
iperf -s
On the machine that will act as the client, run the following command:
iperf -c server_ip
Replace server_ip
with the IP address of the machine running the iperf
server.
This will run a test for 10 seconds and show you the transfer speed.
You can also use the -t
flag to specify a different duration for the test, and the -i
flag to specify the interval at which results are reported. For example:
iperf -c server_ip -t 60 -i 1
This will run the test for 60 seconds and report the results every 1 second.
Alternatively, you can use the speedtest-cli
tool, which is a command-line interface for the popular website speedtest.net.
To install speedtest-cli
, open a terminal and run:
pip install speedtest-cli
Note: If you don't have pip
installed, you can install it by running:
sudo apt-get install python-pip
Once speedtest-cli
is installed, you can run it by simply typing:
speedtest-cli
This will run a test and show you the download and upload speeds, as well as the latency and packet loss.
You can also use the --bytes
flag to display the speeds in bytes per second, rather than bits per second. For example:
speedtest-cli --bytes
You can use the --simple
flag to show a simplified output with just the ping, upload, and download values. For example:
speedtest-cli --simple
You can also use the --bytes
and --simple
flags together to get a simplified output in bytes per second.
Comments
Post a Comment