设为首页 收藏本站
查看: 880|回复: 0

原始ftp命令列表

[复制链接]

尚未签到

发表于 2015-5-27 09:36:51 | 显示全部楼层 |阅读模式
You are on the nsftools.com site  This page originally appeared at http://www.dreamhaven.org/ftp-raw.html, but the last time I looked it wasn't there any more, so I posted a local copy for you here. If you were really looking for a list of commands for the Microsoft Windows command-line FTP client, pleaselook here instead.
  
List of raw FTP commands
(Warning: this is a technical document, not necessary for most FTPuse.)  Note that commands marked with a * are not implemented in a number ofFTP servers.
  
Common commands

  • ABOR - abort a file transfer
  • CWD - changeworking directory
  • DELE - delete a remote file
  • LIST - list remote files
  • MDTM - return the modification time of a file
  • MKD - make a remotedirectory
  • NLST - namelist of remote directory
  • PASS - send password
  • PASV - enter passive mode
  • PORT - open a dataport
  • PWD - printworking directory
  • QUIT - terminate the connection
  • RETR - retrieve a remote file
  • RMD - remove a remotedirectory
  • RNFR - renamefrom
  • RNTO - renameto
  • SITE - site-specific commands
  • SIZE - return the size of a file
  • STOR - store a file on the remote host
  • TYPE - set transfertype
  • USER - send username
Less common commands

  • ACCT* - send account information
  • APPE - append to a remote file
  • CDUP - CWD to the parent of the current directory
  • HELP - return help on using the server
  • MODE - set transfermode
  • NOOP - do nothing
  • REIN* - reinitialize the connection
  • STAT - return serverstatus
  • STOU - store a fileuniquely
  • STRU - set file transferstructure
  • SYST - return system type
ABOR
Syntax: ABOR  Aborts a file transfer currently in progress.
  
ACCT*
Syntax: ACCT account-info  This command is used to send account information on systems that requireit. Typically sent after aPASS command.
  
ALLO
Syntax: ALLO size [R max-record-size]  Allocates sufficient storage space to receive a file. If the maximumsize of a record also needs to be known, that is sent as a secondnumeric parameter following a space, the capital letter "R", and anotherspace.
  
APPE
Syntax: APPE remote-filename  Append data to the end of a file on the remote host. If the file doesnot already exist, it is created. This command must be preceded by aPORT orPASV command so that theserver knows where to receive data from.
  
CDUP
Syntax: CDUP  Makes the parent of the current directory be the current directory.
  
CWD
Syntax: CWD remote-directory  Makes the given directory be the current directory on the remote host.
  
DELE
Syntax: DELE remote-filename  Deletes the given file on the remote host.
  
HELP
Syntax: HELP [command]  If a command is given, returns help on that command; otherwise,returns general help for the FTP server (usually a list of supportedcommands).
  
LIST
Syntax: LIST [remote-filespec]  If remote-filespec refers to a file, sends information about thatfile. Ifremote-filespec refers to a directory, sends informationabout each file in that directory.remote-filespec defaults to thecurrent directory. This command must be preceded by aPORT orPASV command.
  
MDTM
Syntax: MDTM remote-filename  Returns the last-modified time of the given file on the remote host inthe format "YYYYMMDDhhmmss":YYYY is thefour-digit year, MM is the month from 01 to 12,DD is the day of the month from 01 to 31,hh isthe hour from 00 to 23, mm is the minute from 00 to 59, andss is the second from 00 to 59.
  
MKD
Syntax: MKD remote-directory  Creates the named directory on the remote host.
  
MODE
Syntax: MODE mode-character  Sets the transfer mode to one of:

  • S - Stream
  • B - Block
  • C - Compressed
The default mode is Stream.  
NLST
Syntax: NLST [remote-directory]  Returns a list of filenames in the given directory (defaulting to thecurrent directory), with no other information. Must be preceded by aPORT orPASV command.
  
NOOP
Syntax: NOOP  Does nothing except return a response.
  
PASS
Syntax: PASS password  After sending the USER command, send this command tocomplete the login process. (Note, however, that anACCTcommand may have to be used on some systems.)
  
PASV
Syntax: PASV  Tells the server to enter "passive mode". In passive mode, the server willwait for the client to establish a connection with it rather thanattempting to connect to a client-specified port. The server will respondwith the address of the port it is listeningon, with a message like:
227 Entering Passive Mode(a1,a2,a3,a4,p1,p2)
where a1.a2.a3.a4 is the IP address andp1*256+p2 is the port number.
  
PORT
Syntax: PORTa1,a2,a3,a4,p1,p2  Specifies the host and port to which the server should connect for the nextfile transfer. This is interpreted as IP addressa1.a2.a3.a4, portp1*256+p2.
  
PWD
Syntax: PWD  Returns the name of the current directory on the remote host.
  
QUIT
Syntax: QUIT  Terminates the command connection.
  
REIN*
Syntax: REIN  Reinitializes the command connection - cancels the currentuser/password/account information. Should be followed by aUSER command for another login.
  
REST
Syntax: REST position  Sets the point at which a file transfer should start; useful for resuminginterrupted transfers. For nonstructured files, this is simply a decimalnumber. This command must immediately precede a data transfer command(RETRor STOR only); i.e. it mustcome after anyPORT or PASV command.
  
RETR
Syntax: RETR remote-filename  Begins transmission of a file from the remote host. Must be preceded byeither aPORT command or a PASVcommand to indicate where the server should send data.
  
RMD
Syntax: RMD remote-directory  Deletes the named directory on the remote host.
  
RNFR
Syntax: RNFR from-filename  Used when renaming a file. Use this command to specify the file to berenamed; follow it with anRNTO command to specify thenew name for the file.
  
RNTO
Syntax: RNTO to-filename  Used when renaming a file. After sending an RNFRcommand to specify the file to rename, send this command to specify thenew name for the file.
  
SITE*
Syntax: SITE site-specific-command  Executes a site-specific command.
  
SIZE
Syntax: SIZE remote-filename  Returns the size of the remote file as a decimal number.
  
STAT
Syntax: STAT [remote-filespec]  If invoked without parameters, returns general status information aboutthe FTP server process. If a parameter is given, acts like theLIST command, except that data is sent over thecontrol connection(no PORT or PASVcommand is required).
  
STOR
Syntax: STOR remote-filename  Begins transmission of a file to the remote site. Must be preceded byeither a PORT command or a PASVcommand so the server knows where to accept data from.
  
STOU
Syntax: STOU  Begins transmission of a file to the remote site; the remote filenamewill be unique in the current directory. The response from the serverwill include the filename.
  
STRU
Syntax: STRU structure-character  Sets the file structure for transfer to one of:

  • F - File (no structure)
  • R - Record structure
  • P - Page structure
The default structure is File.  
SYST
Syntax: SYST  Returns a word identifying the system, the word "Type:", and the defaulttransfer type (as would be set by theTYPE command).For example:UNIX Type: L8
  
TYPE
Syntax: TYPEtype-character [second-type-character]  Sets the type of file to be transferred. type-character can be anyof:

  • A - ASCII text
  • E - EBCDIC text
  • I - image (binary data)
  • L - local format
For A and E, the second-type-character specifies how the textshould be interpreted. It can be:

  • N - Non-print (not destined for printing). This is the default ifsecond-type-character is omitted.
  • T - Telnet format control (,, etc.)
  • C - ASA Carriage Control
For L, the second-type-character specifies the number of bits perbyte on the local system, and may not be omitted.  
USER
Syntax: USER username  Send this command to begin the login process. username should be avalid username on the system, or "anonymous" to initiate an anonymouslogin.
  

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-71109-1-1.html 上篇帖子: 在Windows2003环境下用Serv-U搭建FTP服务器所遇到的一个问题 下篇帖子: windows2008 IIS下配置FTP服务
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表