File Transfer

rcp

Stands for 'remote copy'. Its use is illustrated by the following examples:

rcp eustace:file1 eufile1 copy from eustace
rcp eufile2 eustace:file2 copy to eustace
rcp eustace:~ruby/file3 eufile3 copy from another user on eustace

The following copies all the files in my local project directory to the projects directory on eustace, and then confirms that the files got there by using the rsh command to list all the files in eustace's projects directory.

rcp -r projectdir eustace:projects
rsh eustace ls -l projects

ftp

Stands for 'File Transfer Protocol'. It works with non-UNIX hosts. A typical FTP session follows:

ftp eustace
Connected to eustace.ebs.co.uk
220 eustace.ebs.co.uk FTP server (SunOS 4.1) ready.
Name(eustace:robby):
331 Password required for robby.
Password:
230 User robby logged in.

ftp>
quit
221 Goodbye.

You can log on to various public service machines as an anonymous user. In this case you enter your user name as 'anonymous' and put your email address as your password.

Ctrl-C aborts current ftp operation and gets back the ftp prompt.

ftp> dir                        lists directory on remote computer (invokes ls -l)
ftp> hash                       displays a # for every 1000 characters transferred.
ftp> get file1 eustace-file1    copy eustace's file1 to local file
ftp> put eustace-file1 file1    do the reverse
ftp> cd mail                    change directory
250 CWD command successful
ftp> pwd                        display working directory id
257 "/mnt/users/rob/mail" is current directory.
ftp> mget *                     multi-file get
ftp> mput *                     multi-file put
ftp> binary                     transfer files in binary mode
ftp> text                       transfers files in text mode
For a fuller explanation of ftp commands see the Internet notes on FTP.
This page's parent within this Web Site. About this Web Site. Its home page. Email its Author.