1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00

iperf, iperf3, chage, lslogins, avahi-{resolve, browse}: add option placeholders; chage: add an example (#16010)

This commit is contained in:
Managor 2025-03-25 11:43:32 +02:00 committed by GitHub
parent 15bdd2e0d7
commit 543956336f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 31 additions and 27 deletions

View file

@ -5,24 +5,24 @@
- Run on server: - Run on server:
`iperf -s` `iperf {{[-s|--server]}}`
- Run on server using UDP mode and set server port to listen on 5001: - Run on server using UDP mode and set server port to listen on 5001:
`iperf -u -s -p {{5001}}` `iperf {{[-u|--udp]}} {{[-s|--server]}} {{[-p|--port]}} {{5001}}`
- Run on client: - Run on client:
`iperf -c {{server_address}}` `iperf {{[-c|--client]}} {{server_address}}`
- Run on client every 2 seconds: - Run on client every 2 seconds:
`iperf -c {{server_address}} -i {{2}}` `iperf {{[-c|--client]}} {{server_address}} {{[-i|--interval]}} {{2}}`
- Run on client with 5 parallel threads: - Run on client with 5 parallel threads:
`iperf -c {{server_address}} -P {{5}}` `iperf {{[-c|--client]}} {{server_address}} {{[-P|--parallel]}} {{5}}`
- Run on client using UDP mode: - Run on client using UDP mode:
`iperf -u -c {{server_address}} -p {{5001}}` `iperf {{[-u|--udp]}} {{[-c|--client]}} {{server_address}} {{[-p|--port]}} {{5001}}`

View file

@ -5,20 +5,20 @@
- Run iperf3 as a server: - Run iperf3 as a server:
`iperf3 -s` `iperf3 {{[-s|--server]}}`
- Run an iperf3 server on a specific port: - Run an iperf3 server on a specific port:
`iperf3 -s -p {{port}}` `iperf3 {{[-s|--server]}} {{[-p|--port]}} {{port}}`
- Start bandwidth test: - Start bandwidth test:
`iperf3 -c {{server}}` `iperf3 {{[-c|--client]}} {{server}}`
- Run iperf3 in multiple parallel streams: - Run iperf3 in multiple parallel streams:
`iperf3 -c {{server}} -P {{streams}}` `iperf3 {{[-c|--client]}} {{server}} {{[-P|--parallel]}} {{streams}}`
- Reverse direction of the test. Server sends data to the client: - Reverse direction of the test. Server sends data to the client:
`iperf3 -c {{server}} -R` `iperf3 {{[-c|--client]}} {{server}} {{[-R|--reverse]}}`

View file

@ -6,16 +6,16 @@
- List services available on the local network along with their addresses and ports, ignoring ones on the local machine: - List services available on the local network along with their addresses and ports, ignoring ones on the local machine:
`avahi-browse --all --resolve --ignore-local` `avahi-browse {{[-a|--all]}} {{[-r|--resolve]}} {{[-l|--ignore-local]}}`
- Quickly list services in the local network in SSV format for scripts: - Quickly list services in the local network in SSV format for scripts:
`avahi-browse --all --terminate --parsable` `avahi-browse {{[-a|--all]}} {{[-t|--terminate]}} {{[-p|--parsable]}}`
- List domains in the neighbourhood: - List domains in the neighbourhood:
`avahi-browse --browse-domains` `avahi-browse {{[-D|--browse-domains]}}`
- Limit the search to a particular domain: - Limit the search to a particular domain:
`avahi-browse --all --domain={{domain}}` `avahi-browse {{[-a|--all]}} --domain={{domain}}`

View file

@ -5,8 +5,8 @@
- Resolve a local service to its IPv4: - Resolve a local service to its IPv4:
`avahi-resolve -4 --name {{service.local}}` `avahi-resolve -4 {{[-n|--name]}} {{service.local}}`
- Resolve an IP to a hostname, verbosely: - Resolve an IP to a hostname, verbosely:
`avahi-resolve --verbose --address {{IP}}` `avahi-resolve {{[-v|--verbose]}} {{[-a|--address]}} {{IP}}`

View file

@ -5,20 +5,24 @@
- List password information for the user: - List password information for the user:
`chage --list {{username}}` `chage {{[-l|--list]]} {{username}}`
- Enable password expiration in 10 days: - Enable password expiration in 10 days:
`sudo chage --maxdays {{10}} {{username}}` `sudo chage {{[-M|--maxdays]}} {{10}} {{username}}`
- Disable password expiration: - Disable password expiration:
`sudo chage --maxdays {{-1}} {{username}}` `sudo chage {{[-M|--maxdays]}} {{-1}} {{username}}`
- Set account expiration date: - Set account expiration date:
`sudo chage --expiredate {{YYYY-MM-DD}} {{username}}` `sudo chage {{[-E|--expiredate]}} {{YYYY-MM-DD}} {{username}}`
- Force user to change password on next log in: - Force user to change password on next log in:
`sudo chage --lastday {{0}} {{username}}` `sudo chage {{[-d|--lastday]}} {{0}} {{username}}`
- Re-enable an account:
`sudo chage {{[-E|--expiredate]}} -1 {{username}}`

View file

@ -9,20 +9,20 @@
- Display users belonging to a specific group: - Display users belonging to a specific group:
`lslogins --groups={{groups}}` `lslogins {{[-g|--groups]}} {{groups}}`
- Display user accounts: - Display user accounts:
`lslogins --user-accs` `lslogins {{[-u|--user-accs]}}`
- Display last logins: - Display last logins:
`lslogins --last` `lslogins {{[-L|--last]}}`
- Display system accounts: - Display system accounts:
`lslogins --system-accs` `lslogins {{[-s|--system-accs]}}`
- Display supplementary groups: - Display supplementary groups:
`lslogins --supp-groups` `lslogins {{[-G|--supp-groups]}}`