Table 232: FTP User Commands
User
Command
|
Description
|
account <account-name>
|
Sends the ACCT command
to access a particular account on the server.
|
append
<file-name>
|
Appends data
to a file using APPE.
|
ascii
|
Sets the ASCII data type
for subsequent transfers.
|
binary
|
Sets the Image
data type for subsequent transfers. Same as the image command.
|
bye
|
Terminates FTP session and exits
the FTP client (same as exit and quit).
|
cd
<directory-path>
|
Change remote
server working directory (using CWD protocol command.)
|
cdup
|
Go to parent of current working
directory.
|
chmod
<file-name>
|
On UNIX systems,
change file permissions of a file.
|
close
|
Closes a particular FTP session
but user stays at FTP command line.
|
debug
|
Sets debug
mode.
|
delete <file-name>
|
Deletes a file on the FTP server.
|
dir
[<optional-file-specification>]
|
Lists contents
of current working directory (or files matching the specification).
|
exit
|
Another synonym for bye
and quit.
|
form
<format>
|
Set transfer
format.
|
ftp <ftp-server>
|
Open session to FTP server.
|
get
<file-name> [<dest-file-name>]
|
Get a file.
If the <dest-file-name> parameter is specified, it
is used for the name of the file retrieved; otherwise, the source file
name is used.
|
help [<optional-command-name>]
|
Displays FTP client help information.
Same as ?.
|
image
|
Set Image data
type, like the binary command.
|
ls [<optional-file-specification>]
|
Lists contents of current working
directory (or files matching the specification). Same as dir.
|
mget
<file-specification>
|
Gets multiple
files from the server.
|
mkdir <directory-name>
|
Create directory on remote server.
|
mode
<transfer-mode>
|
Set file transfer
mode.
|
mput <file-specification>
|
Sends (puts) multiple
files to the server.
|
msend
<file-specification>
|
Same as mput.
|
open <ftp-server>
|
Open session to FTP server (same
as ftp).
|
passive
|
Turns passive
transfer mode on and off.
|
put <file-name>
[<dest-file-name>]
|
Sends a file to the server. If
the <dest-file-name> parameter is specified, it is
used as the name for the file on the destination host; otherwise, the
source file name is used.
|
pwd
|
Prints current
working directory.
|
quit
|
Terminates FTP session and exits
FTP client (same as bye and exit.)
|
recv
<file-name> [<dest-file-name>]
|
Receives file
(same as get). If the <dest-file-name> parameter
is specified, it is used for the name of the file retrieved; otherwise,
the source file name is used.
|
rename <old-file-name>
<new-file-name>
|
Renames a file.
|
rhelp
|
Displays remote
help information, obtained using FTP HELP command.
|
rmdir <directory-name>
|
Removes a directory.
|
send
<file-name> [<dest-file-name>]
|
Sends a file
(same as put). If the <dest-file-name> parameter
is specified, it is used as the name for the file on the destination
host; otherwise, the source file name is used.
|
site
|
Sends a site-specific command
to the server.
|
size
<file-name>
|
Show size of
remote file.
|
status
|
Displays current session status.
|
struct
<structure-type>
|
Sets file structure.
|
system
|
Shows the server's operating
system type.
|
type
<data-type>
|
Sets data type
for transfers.
|
user <user-name>
|
Log in to server as a new user.
Server will prompt for password.
|
? [<optional-command-name>]
|
Displays FTP
client help information. Same as help.
|