2

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

4
  • 4
    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, 2010 at 10:26
  • no homework but job interview ...
    – Radek
    Mar 4, 2010 at 7:38
  • is actually nfs used a lot these days?
    – Radek
    Mar 4, 2010 at 7:39
  • 1
    I see NFS in lots of customers, so I would say yes, it is used a lot.
    – chmeee
    Mar 4, 2010 at 10:04

13 Answers 13

10

Two more:

  • rsync
  • scp
2
  • 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. Mar 3, 2010 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. Mar 3, 2010 at 16:46
5

One more - netcat.

3

Haven't used it in years but:

  • uucp
2

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

2

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.

2

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

2
  • 4
    You need to uuencode it first. You could use mime encoding, but I don't trust mimes.
    – chris
    Mar 3, 2010 at 15:26
  • "mime is money"
    – Chopper3
    Mar 3, 2010 at 16:47
2

Hmmm, how come nobody said SAMBA yet?

0

I occasionaly use sendfile.

2
  • The kernel function? Mar 3, 2010 at 16:13
  • @Zimmy-DUB-Zongy-Zong-DUBBY: No, the command line utility. Using the SAFT protocol.
    – Teddy
    Mar 4, 2010 at 7:53
0

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.

1
0

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.

0

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

0

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

-1

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!

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .