tldr-pages / tldr

📚 Collaborative cheatsheets for console commands
https://tldr.sh
Other
51.3k stars 4.22k forks source link

Page modification request: speedtest #14804

Open sohang3112 opened 1 week ago

sohang3112 commented 1 week ago

In the speedtest page, all commands are not working (except for the first one with no CLI arguments: speedtest). I'm running the speedtest-cli 2.1.3 (it's the latest version) - it's possible these CLI arguments worked in an earlier version.

All these commands are not working (in each case error unrecognized arguments is shown):

Available options are listed in speedtest's github repository: https://github.com/sivel/speedtest-cli - there also the above mentioned CLI arguments are not mentioned. Note that a flag similar to last one listed (-server-id) exists, so it might have been renamed at some point: --server SERVER.

spageektti commented 1 week ago

Hi. We have Issues templates. Please use them.

acuteenvy commented 1 week ago

The speedtest page documents a different program (https://www.speedtest.net/apps/cli). The page for https://github.com/sivel/speedtest-cli is speedtest-cli, and there's already a note about this in both pages.

https://github.com/tldr-pages/tldr/blob/936bebbd521214f47887021e164ad0069db90bd9/pages/common/speedtest.md?plain=1#L4 https://github.com/tldr-pages/tldr/blob/936bebbd521214f47887021e164ad0069db90bd9/pages/common/speedtest-cli.md?plain=1#L4

sohang3112 commented 6 days ago

@acuteenvy You're right that I confused speedtest-cli and speedtest (it was aliased on my system). But these commands are not working even in the official speedtest program (installed with official Fedora instructions at https://www.speedtest.net/apps/cli):

$ speedtest --servers
Unknown option --servers
$ speedtest --unit=auto-decimal-bytes
Unknown option --unit=auto-decimal-bytes
$ speedtest --format=json
Unknown option --format=json
$ speedtest --progress=no
Unknown option --progress=no
acuteenvy commented 6 days ago

These examples work on my system. Are you sure you've installed the official speedtest? What is the output of speedtest --version?

$ speedtest --version
Speedtest by Ookla 1.2.0.84 (ea6b6773cf) Linux/x86_64-linux-musl 6.11.7-arch1-1 x86_64

The official command line client for testing the speed and performance
of your internet connection.
spageektti commented 6 days ago

@acuteenvy You're right that I confused speedtest-cli and speedtest (it was aliased on my system). But these commands are not working even in the official speedtest program (installed with official Fedora instructions at speedtest.net/apps/cli):

$ speedtest --servers Unknown option --servers $ speedtest --unit=auto-decimal-bytes Unknown option --unit=auto-decimal-bytes $ speedtest --format=json Unknown option --format=json $ speedtest --progress=no Unknown option --progress=no

I think that is because sudo yum install speedtest by default installs the package from the default fedora repo, which is a different tool (GUI only). At least that is what it has done on my system. https://packages.fedoraproject.org/pkgs/speedtest/speedtest/ https://github.com/Ketok4321/speedtest

Update: Someone added a comment on packages.fedoraproject.org about the conflict 9 hours ago https://bugzilla.redhat.com/show_bug.cgi?id=2257536

sohang3112 commented 5 days ago

I think that is because sudo yum install speedtest by default installs the package from the default fedora repo, which is a different tool (GUI only)

@spageektti Not sure if that happened on my system or not - but it's definitely NOT gui only, because the speedtest command works in terminal. Regardless, is there an alternative install procedure on Fedora for speedtest to ensure the "official" CLI is installed?