16 lines
407 B
Plaintext
16 lines
407 B
Plaintext
|
|
#!/bin/bash
|
|
|
|
###################################
|
|
############ by Sthope ############
|
|
###################################
|
|
|
|
## nano ~/.bashrc
|
|
## and add this to the end of the file: export PATH=$PATH:~/bin
|
|
## sudo chmod +x ~/bin/*;su -l $USER
|
|
|
|
#### USAGE
|
|
# Type randomportgenerator and it will generate 10 random ports from range 50000 and 65535
|
|
|
|
for i in {1..10}; do echo $((50000 + RANDOM % 65535)); done
|