send and receive file with netcat code example
Example: send file netcat
#Receiver
nc -l -p <port_number> -q 1 > something.zip < /dev/null
#Sender
cat something.zip | netcat <receiver_ip> <port_number>
#Receiver
nc -l -p <port_number> -q 1 > something.zip < /dev/null
#Sender
cat something.zip | netcat <receiver_ip> <port_number>