如何在命令行上生成随机端口号
以下 Linux shell 命令将生成 1024 和 65535 之间(含)的随机端口号:
random_port_shuf.sh
shuf -i 1024-65535 -n 1示例:
random_port_example.txt
$ shuf -i 1024-65535 -n 1
45508Check out similar posts by category:
Linux, Networking
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow