Skip to content

Instantly share code, notes, and snippets.

@martianyi
Last active October 9, 2019 10:40
Show Gist options
  • Save martianyi/dd1cc0517d2edc28d3a961cbcd993cb3 to your computer and use it in GitHub Desktop.
Save martianyi/dd1cc0517d2edc28d3a961cbcd993cb3 to your computer and use it in GitHub Desktop.
Copy a file from one machine to another using Netcat

Server side

nc -l 60000 > qux.txt

Client side

nc bar.example.com 60000 < qux.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment