./port-scanner --help Usage: port-scanner -h host -p port1[-port2] Example: 1) Scan 22 port of 127.0.0.1 port-scanner -h 127.0.0.1 -p 22 2) Scan the ports 8000-9000 of 127.0.0.1 port-scanner -h ...
user@host:~/bash-port-scanner$ . scanner user@host:~/bash-port-scanner$ scan google.com 78-82 78/tcp closed 79/tcp closed 80/tcp open 81/tcp closed 82/tcp closed user ...