Sie sind auf Seite 1von 5

File

Transfer
Protocol
Commands

FTP Commands

USER R
PASS O
ACCT O
CWD O
CDUP O
SMNT O
system
QUIT R
REIN O
PORT R

User name, userid for access control


Password for access control
Account info
Change working directory
Change to parent directory
Structure mount, mount a different file
informs server that client wants out
restarts session at authentication phase
Host addr and data port to use

FTP Commands (Cont..)

PASV O Passive; informs server that client will


contact to set up data connections, ask server to
sent port info
TYPE R Data type, type of subsequent transfers
STRU R File structure
MODE R Transfer mode
RETR R Retrieve, download the file from server
STOR R Store, upload the specified to server
STOU O Store unique, same as store but server
picks unique file name

FTP Commands (Cont..)

APPE O Append, upload file to server, if file name


exists, append the upload
ALLO O Allocate, sometimes used to preallocate
space
REST O Restart, restart an interrupted transfer
RNFR O Rename file from filename
RNTO O Rename file to
ABOR O Abort, ask server to abort last command
DELE O Delete specified file
RMD O Remove directory
MKD O Make directory

FTP Commands (Cont..)

PWD O
LIST O
NLST O
SITE O
site
SYST O
STAT O
xfr
HELP O
NOOPR

Print working directory


Request directory listing
Request just a file name list
Site parameters, allow client to specify
specific options and parameters
request server operating system
Request server to send status of current
general and command specific
ask server to send a positive reply

Das könnte Ihnen auch gefallen