#Receiver nc -l -p <port_number> -q 1 > something.zip < /dev/null #Sender cat something.zip | netcat <receiver_ip> <port_number>