nc (netcat)

This is a great way to quickly get a file from one machine to another:

Box 1 (192.168.1.2):

$ cat /path/to/existing/file | nc -q 10 -l -p 7878

Box 2 (192.168.1.3):

$ nc -w 10 192.168.1.3 7878 > /some/path/to/create/file

Click here for more info.

Leave a Reply

You must be logged in to post a comment.