Simple File Transfer Methods

file-sharingnetworking

Given two Linux boxes on a LAN, what's the simplest way to transfer files between them?

Best Answer

I use scp.

scp source desthost:/path/to/dest/.

to copy from the local machine to the remote machine, or

scp srchost:/path/to/file/file .

to copy from a remote machine to the local machine.

If the username is not the same on the remote machine,

scp user@srchost:/path/to/file/file .
Related Question