|
|
|
|
|
by yuvadam
4307 days ago
|
|
While I'm doing command line file sharing, why not just directly transfer a file to my peer with netcat? Server: $ cat hugefile.ext | nc -l -p 9999
Client: $ nc server.ip 9999 > hugefile.ext
We tend to forget how the network is built, and how easy it is to use it with the right tools. |
|
The first command can be given more easily as:
(which also mirrors the logic of the second, modulo nc's idiosyncratic argument syntax)