Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I can think of

  • ftp
  • nfs
  • ssh
  • rcp

any other ways? Comments?

NOTE: these two servers are inside LAN, the copying is not over the Internet

share|improve this question
sniff sniff I smell homework - is this a serious question, if so can you frame the question better please otherwise this could run and run. – Chopper3 Mar 3 '10 at 10:26
no homework but job interview ... – Radek Mar 4 '10 at 7:38
is actually nfs used a lot these days? – Radek Mar 4 '10 at 7:39
I see NFS in lots of customers, so I would say yes, it is used a lot. – chmeee Mar 4 '10 at 10:04

13 Answers 13

up vote 10 down vote accepted

Two more:

  • rsync
  • scp
share|improve this answer
rsync may be also used for the same simple tasks as scp (copy a regular file to remote machine over ssh), but it not only saves bandwidth when updating files (the 'main feature' of rsync), but also does better job with special files and with preserving file permissions or ownership, when needed. – Jacek Konieczny Mar 3 '10 at 14:21
add to that that rsync will also do a checksum for each file transferred and it beats SCP in my book any day. – faultyserver Mar 3 '10 at 16:46

One more - netcat.

share|improve this answer

Haven't used it in years but:

  • uucp
share|improve this answer

rsync, it's better if you need to sync every day two remote folders, don't waste bandwith (transfer only changed chunks).

share|improve this answer

SMTP. No, seriously: I had a situation ages ago on a badly adminned Sun-centric network where this was the only port that didn't hangup when it received more than 50K or so. So I wrote a script that telnet 25'd tarballs around. It was silly, but it worked.

"Maliciously incompetent" was the term my officemate used about the admin.

share|improve this answer

Print out the file, then manually type it in on the other computer. Bring a lot of coffee!

share|improve this answer
You need to uuencode it first. You could use mime encoding, but I don't trust mimes. – chris Mar 3 '10 at 15:26
"mime is money" – Chopper3 Mar 3 '10 at 16:47

Hmmm, how come nobody said SAMBA yet?

share|improve this answer

I occasionaly use sendfile.

share|improve this answer
The kernel function? – Zimmy-DUB-Zongy-Zong-DUBBY Mar 3 '10 at 16:13
@Zimmy-DUB-Zongy-Zong-DUBBY: No, the command line utility. Using the SAFT protocol. – Teddy Mar 4 '10 at 7:53

I find rsync and scp very functional, but not expressive. If you want to express yourself technically, I recommend a combination of netcat and dd.

However, a true artist would use a protocol like RFC 1159, A Standard for the Transmission of IP Datagrams on Avian Carriers, or perhaps even write their own protocol.

share|improve this answer
7 – Dennis Williamson Mar 3 '10 at 15:09

Use ssh.

Set up public key authentication, then on the receiving computer do MOTD_LEN='ssh 'cat /dev/null' | wc -l' ; ssh 'cat | tail -n +$(( $MOTD_LEN + 1 ))(You'll need to turn the first apostrophe and the one after "wc -l" into backticks; markdown doesn't like them.)

Or you can just use email.

share|improve this answer

TFTP. It's more popular nowadays for things like loading firmware on VoIP phones but it was once common for booting headless workstations.

share|improve this answer

There's always 'Laplink' over serial or parallel (extra speed for power users!), or am I showing my age here?

Oh and some linux's support DLC over SDLC and X.25 too

share|improve this answer

Under unix the proper way to copy a file is to create your own protocol and compile a command to carry out the requested function. Any other command that already exists that might perform that function is probably not exactly the way that you'll want it done. An excellent reference about this phenomenon is in this PDF. Enjoy!

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.