FTP (file transfer protocol) reference card
==============================================================================
Starting: the address of the remote computer must be either IP number or
an Internet name
% ftp 192.38.47.119
% ftp wuarchive.wustl.edu
Prompt changes to ftp>
Two kinds of ftp:
1. You have a username and know the password on the remote computer
2. You connect to an anonymous ftp site, username is usually "anonymous"
Ftp commands:
ftp> help <-- list ftp commands
ftp> help binary <-- get help on binary command
ftp> quit <-- end ftp, bye also works
ftp> ls <-- list files on remote
ftp> dir <-- long list files on remote
like ls -l
ftp> pwd <-- print remote working dir.
ftp> get somefile.c <-- cause file to be transferred
from remote to local host
ftp> put somefile.c <-- cause file to be transferred
from local to remote host
ftp> binary <-- switch to binary transfer
mode (you MUST do this if you
are transferring binaries,
gifs, tar files)
ftp> status <-- find out what modes are on
ftp> mget *.c <-- multiple get, *.c stands fox
all ".c" files, as in UNIX,
wildcards are on
ftp> mput *.c <-- multiple put
ftp> cd public/C_PROGS <-- change directory on remote
ftp> lcd /mnt1/dept/meyer <-- local change directory
ftp> !csh <-- fork off a C shell, can
return to ftp by "exit"
ftp> !mail <-- do any UNIX command in ftp
ftp> delete someprog.c <-- delete remote file
ftp> mdel *.c <-- multiple delete
ftp> prompt <-- toggle prompting, usually
turn it off when doing mget,
mput or mdel
ftp> mkdir <-- make directory on remote
ftp> rmdir <-- remove directory on remote
ftp> rename <-- rename remote file
BIG ANONYMOUS FTP SITES:
ftp.uu.net Seems to be lots of neat stuff there.
wuarchive.wustl.edu (128.252.135.4) Huge archive of lots of files
export.lcs.mit.edu X Windows source
prep.ai.mit.edu GNU software
oak.oakland.edu A HUGE amount of really neat stuff!