How to Copy large files without SCP or RSYNC

Linux-LogoTo transfer files from one machine to another generally we are using scp or rsync. If there is no requirement of encryption then we can use netcat (nc) insted of scp or rsync as it is much faster than scp or rsync.


1) On the destination server, tell netcat to listen on a port (e.g. 62345)

2) On the source server, tell netcat to send to the destination server’s running netcat process:

Both nc processes will exit once the transmission is complete (or it fails).

More examples:

You can use this pattern to pipe data to files, devices, etc:

You can also add compression to speed up transfers across a slow network link (e.g. gzip, bzip2, qpress, etc.):

The following two tabs change content below.

Tapas Mishra

Sr. Engineer (DevOps)
Loves to work on Opensource products. Having experience on Linux environment. Knowledge on Public cloud services like AWS, Rackspace, DigitalOcean, Linode. Please don't hesitate to give a comment on the posts. Your comments are my strength.

Leave a Reply