nc [options] host port
sudo apt-get install netcat
nc -z -v 192.168.0.113 1-80
nc -z -v 192.168.0.113 1-80 2>&1 | grep open
echo "EXIT" | nc 192.168.0.113 22
SSH-2.0-OpenSSH_7.9p1 Debian-10
Protocol mismatch.
nc -v 192.168.0.113 1-80 > test.txt
nc -l 5555 > file_name
nc 192.168.0.113 5555 < file_name
nc -l 5555 | tar xzvf -
tar czvf - /path/to/dir | nc 192.168.0.113 5555
nc -lp 9000
nc 192.168.1.13 9000