Thursday, July 16, 2015

quick file copy (without ftp/scp)

This is for quick copy only, where you don't want to setup any ftp or scp server
and have the machines in same network

## say we have two hosts: alpha & beta
##  need to copy: file-big.tgz
## linux util: nc

on host: alpha
$ cat file-big.tgz | nc -v -l 3334


now get the file on host:beta
$ nc  -v  alpha 3334   > file-from-alpha-file-big.tgz


voila, we have the file on host beta...