Skip to content

Instantly share code, notes, and snippets.

@justmao945
Created February 27, 2018 11:03
Show Gist options
  • Save justmao945/b1b2e44cbba96013bc07f8986f5b9ecf to your computer and use it in GitHub Desktop.
Save justmao945/b1b2e44cbba96013bc07f8986f5b9ecf to your computer and use it in GitHub Desktop.
On receiving end:
nc -l 1234 > file.tar.gz
On sending end:
cat file.tar.gz | nc <reciever's ip or hostname> 1234
That should work. Depending on the speed, it may take a while but both processes will finish when the transfer is done.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment