Last Updated: February 25, 2016
·
5.32K
· Osvaldo Zonetti

Sending files over network with 'netcat'

To send a file just:

nc -l 1337 < file.txt

Then at the client:

nc 192.168.2.100 1337 > file.txt

Just change the IP and PORT according to your scenario.

For more great stuff: http://mylinuxbook.com/linux-netcat-command/