diff --git a/tldr/speedtest b/tldr/speedtest index 471defd4..06039532 100644 --- a/tldr/speedtest +++ b/tldr/speedtest @@ -6,7 +6,8 @@ source: https://github.com/tldr-pages/tldr.git # speedtest > Official command-line interface for testing internet bandwidth using . -> Note: some platforms link `speedtest` to `speedtest-cli`. If some of the examples in this page don't work, see `speedtest-cli`. +> Note: some platforms link `speedtest` to `speedtest-cli` or other tools like `librespeed`, which can also be installed as `speedtest` on certain Linux distributions. +> These command examples apply only to the official client. > More information: . - Run a speed test: diff --git a/tldr/speedtest-rs b/tldr/speedtest-rs new file mode 100644 index 00000000..28ac174f --- /dev/null +++ b/tldr/speedtest-rs @@ -0,0 +1,33 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# speedtest-rs + +> An unofficial Rust-based tool for testing network speeds using speedtest.net, limited to HTTP Legacy Fallback. +> More information: . + +- Run a full speed test (download and upload): + +`speedtest-rs` + +- Display a list of `speedtest.net` servers sorted by distance: + +`speedtest-rs --list` + +- Run a download test only: + +`speedtest-rs --no-upload` + +- Run an upload test only: + +`speedtest-rs --no-download` + +- Generate a shareable link to the test results image: + +`speedtest-rs --share` + +- Display basic output information only: + +`speedtest-rs --simple` diff --git a/tldr/typeset b/tldr/typeset index 46ef339a..a049285e 100644 --- a/tldr/typeset +++ b/tldr/typeset @@ -5,29 +5,8 @@ source: https://github.com/tldr-pages/tldr.git --- # typeset -> Declare variables and give them attributes. -> More information: . +> This command is an alias of `declare`. -- Declare a string variable with the specified value: +- View documentation for the original command: -`typeset {{variable}}="{{value}}"` - -- Declare an integer variable with the specified value: - -`typeset -i {{variable}}="{{value}}"` - -- Declare an array variable with the specified value: - -`typeset {{variable}}=({{item_a item_b item_c}})` - -- Declare an associative array variable with the specified value: - -`typeset -A {{variable}}=({{[key_a]=item_a [key_b]=item_b [key_c]=item_c}})` - -- Declare a readonly variable with the specified value: - -`typeset -r {{variable}}="{{value}}"` - -- Declare a global variable within a function with the specified value: - -`typeset -g {{variable}}="{{value}}"` +`tldr declare` diff --git a/tldr/until b/tldr/until new file mode 100644 index 00000000..2a171e70 --- /dev/null +++ b/tldr/until @@ -0,0 +1,17 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# until + +> Simple shell loop that repeats until it receives zero as return value. +> More information: . + +- Execute a command until it succeeds: + +`until {{command}}; do :; done` + +- Wait for a systemd service to be active: + +`until systemctl is-active --quiet {{nginx}}; do {{echo "Waiting..."}}; sleep 1; done; {{echo "Launched!"}}`