Command |
Description |
put filename
|
Copies the file filename from your local computer
to the remote computer. If you give a second argument, the remote copy will
have that name.
|
mput filenames
|
Copies the named files (you can use wildcards) from local
to remote.
|
get filename
|
Copies the file filename from the
remote computer to your local computer. If you give a second argument, the
local copy will have that name.
|
mget filenames
|
Copies the named files (you can use wildcards) from remote
to local.
|
prompt
|
A "toggle" command that turns prompting on or off during transfers with the
mget and mput
commands.
By default,
mget and mput
will prompt you "mget filename?" or
"mput filename?" before transferring each file;
you answer y or n each time.
Typing prompt once, from an
"ftp>" prompt, stops the prompting: all files will be transferred
without question until the end of the ftp
session.
Or, if prompting is off, typing prompt
at an "ftp>" prompt resumes prompting.
|
cd pathname
|
Changes the working directory on the remote machine
to pathname
(ftp typically starts at your home
directory on the remote machine).
|
lcd pathname
|
Changes ftp's working directory on
the local machine to pathname.
(ftp's first local working directory is
the same working directory from which you started the program.)
Note that the ftp lcd command
changes only ftp's working directory.
After you quit ftp, your
shell's working directory will not have changed.
|
dir |
Lists the remote directory (like ls -l).
|
binary |
Tells ftp to copy the following file(s)
without translation.
This preserves pictures, sound, or other data.
|
ascii |
Transfers plain text files, translating data if needed.
For instance, during transfers between a Microsoft Windows system
(which adds CTRL-M to the end of each line of text) and a Unix system
(which doesn't), an ascii-mode
transfer removes or adds those characters as needed.
|
quit |
Ends the ftp session and takes you
back to a shell prompt.
|