Send a file (sender)

Serve a file on port 4444 and wait until the receiver connects

nc -lvp 4444 < file.tar.gz

tool
netcat10 commands
tags
netcatnctransferfile

More netcat commands

all 10 netcat commands