Linux

  1. Home
  2. Computing & Technology
  3. Linux
photo of Juergen Haas

Juergen's Linux Blog

By Juergen Haas, About.com Guide to Linux since 2003

rcp, scp, ftp, rsync - Commands For Copying Files Between Computers

Monday April 13, 2009
There are a number of Linux commands you can use to copy files from one computer to another. The rcp ("remote copy") command is meant to work like the cp ("copy") command, except that is allows you to copy files and directories over the network to and from remote computers.

This is nice and simple, but to make it work you need to first set up the computers involved in the transaction to allow this operation. This is done using the ".rhosts" files. See here for more information.

A more secure version of rcp is scp ("secure copy"). It is based on the ssh ("secure shell") protocol, which uses encryption.

The key advantage of the ftp client program is that it comes with most commonly used operating systems, including most Linux distributions and even Microsoft Windows, and it doesn't require ".rhosts" files. You can copy multiple files with ftp, but the basic ftp clients typically do not transfer whole directory trees.

rsync works like scp but does checksum operations on the source and the destination. After the initial sync, moving large amounts of data can by very quick.

Comments

No comments yet. Leave a Comment

Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>

Discuss

Community Forum

Explore Linux

About.com Special Features

Build Your Own Website

Step-by-step advice on how to do everything from choosing a Web host to promoting your content. More >

Connect Your Home Computers

Easy ways to connect two computers for networking purposes. More >

Linux

  1. Home
  2. Computing & Technology
  3. Linux

©2009 About.com, a part of The New York Times Company.

All rights reserved.