🦊

netcat

via nakkaya.com

send and receive with netcat

receiver:

nc -l -p 1337 > file-to-save

sender:

# host1 is a hostname/ip
nc -w 3 host1 1337 < file-to-send

send and recieve with netcat and compression

receiver:

nc -l -p 1337 | uncompress -c | tar xvfp -

sender:

tar cfp - /some/dir | compress -c | nc -w 3 host1 1337