zoukankan      html  css  js  c++  java
  • Ftp commands and options

    Ftp commands

    FTP [ftpserver] - connect ftp server

    ABOR - abort a file transfer
    CWD - change working directory
    DELE - delete a remote file
    LIST - list remote files
    MDTM - return the modification time of a file
    MKD - make a remote directory
    NLST - name list of remote directory
    PASS - send password
    PASV - enter passive mode
    PORT - open a data port
    PWD - print working directory
    QUIT - terminate the connection
    RETR - retrieve a remote file
    RMD - remove a remote directory
    RNFR - rename from
    RNTO - rename to
    SITE - site-specific commands
    SIZE - return the size of a file
    STOR - store a file on the remote host
    TYPE - set transfer type
    USER - send username

    Ftp option: 

    >ftp /?

    Transfers files to and from a computer running an FTP server service
    (sometimes called a daemon). Ftp can be used interactively.

    FTP [-v] [-d] [-i] [-n] [-g] [-s:filename] [-a] [-A] [-x:sendbuffer] [-r:recvbuffer] [-b:asyncbuffers] [-w:windowsize] [host]

      -v              Suppresses display of remote server responses.
      -n              Suppresses auto-login upon initial connection.
      -i              Turns off interactive prompting during multiple file
                      transfers.
      -d              Enables debugging.
      -g              Disables filename globbing (see GLOB command).
      -s:filename     Specifies a text file containing FTP commands; the
                      commands will automatically run after FTP starts.
      -a              Use any local interface when binding data connection.
      -A              login as anonymous.
      -x:send sockbuf Overrides the default SO_SNDBUF size of 8192.
      -r:recv sockbuf Overrides the default SO_RCVBUF size of 8192.
      -b:async count  Overrides the default async count of 3
      -w:windowsize   Overrides the default transfer buffer size of 65535.
      host            Specifies the host name or IP address of the remote
                      host to connect to.

    Notes:
      - mget and mput commands take y/n/q for yes/no/quit.
      - Use Control-C to abort commands.

     reference:

    http://www.ericphelps.com/batch/samples/ftp.script.txt

  • 相关阅读:
    LRT最大似然比检验
    EPNP理论分析
    奇异值SVD分解
    矩阵求导
    static_cast和dynamic_cast用法
    Django 使用 Celery 实现异步任务
    python爬虫实战一:分析豆瓣中最新电影的影评
    scrapy模拟登陆知乎--抓取热点话题
    一个小时搭建一个全栈Web应用框架(上)
    一个小时搭建一个全栈 Web 应用框架(下)——美化与功能
  • 原文地址:https://www.cnblogs.com/zzj8704/p/1756068.html
Copyright © 2011-2022 走看看