Netcat for sending files
Jesse Storimer recently shared as part of his informative emails “Working With Code” how to easily send files over the local network using the command line.
The Receiver should enter
nc -l 5566 > large_file.sql
5566 is an arbitrary open port, and
large_file.sql is the name of the file (this could be different than the sender’s file name). This command will then block until it receives all the file.
The Sender should then enter
nc <receiver-ip-address> 5566 < big_file.sql
5566 is the same port as the receiver and
big_file.sql is the file to send. Make sure to get the
< direction correct! This will block until the file is sent.
Source: Sharing files like a hacker