Netcat File Transfer. Your netcat doesnt shut the connection after the transfer so it is different from the ones described above. A frequently used feature of netcat is copying files.

It can be used for just about anything involving tcp or udp. One of its most practical uses is to transfer files. In our example the testfiletxt file is copied from computer a client to computer b server via port 6790.
So you have lots of data to transfer between two machines over ethernet.
On the side with the directory contents we want to transfer we can pack them into a tarball and then send them to the remote computer through netcat. Showing progress in file. Otherwise use scp or. This is by no means secure but if you havent got the time or desire to setup nfs ftp samba or wait hours for scp to do its job then this can save you a lot of time.