Linux command
netselect 命令
安全
权限或系统影响较大,执行前请核对目标。
常用示例
Example
sudo netselect [host_1 host_2 ...]
Example
sudo netselect -vv [host_1 host_2 ...]
Example
sudo netselect -m [10] [host_1 host_2 ...]
Example
sudo netselect -s [n] [host_1 host_2 host_3 ...]
Example
netselect
说明
netselect determines the fastest network servers from a list of hosts by measuring packet round-trip time and routing hops. It sends probe packets and ranks hosts based on a combined score of latency and hop count. The output score is calculated as latency multiplied by (number of hops)^3, favoring nearby servers with low latency. Lower scores indicate better servers. Commonly used to select the fastest Debian mirror or DNS server. The companion tool netselect-apt automates mirror selection for Debian systems.
参数
- -v
- Verbose mode; show resolution and stats (use -vv for more detail)
- -m _ttl_
- Maximum TTL (time to live) for probe packets
- -s _n_
- Print the n fastest servers instead of just the fastest
- -t _n_
- Number of packets to send per host
- -I
- Use ICMP echo instead of UDP
FAQ
What is the netselect command used for?
netselect determines the fastest network servers from a list of hosts by measuring packet round-trip time and routing hops. It sends probe packets and ranks hosts based on a combined score of latency and hop count. The output score is calculated as latency multiplied by (number of hops)^3, favoring nearby servers with low latency. Lower scores indicate better servers. Commonly used to select the fastest Debian mirror or DNS server. The companion tool netselect-apt automates mirror selection for Debian systems.
How do I run a basic netselect example?
Run `sudo netselect [host_1 host_2 ...]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -v do in netselect?
Verbose mode; show resolution and stats (use -vv for more detail)