La commande shell Linux suivante générera un numéro de port aléatoire entre 1024 et 65535 (inclus) :
random_port_shuf.sh
shuf -i 1024-65535 -n 1Exemple :
random_port_example.txt
$ shuf -i 1024-65535 -n 1
45508Si cet article vous a aidé, pensez à m'offrir un café ou à faire un don via PayPal pour soutenir la recherche et la publication de nouveaux articles sur TechOverflow