• 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

  • 相关阅读:
    Linux命令——tac、rev
    Linux命令——pr
    Linux命令——column
    【问题】显示每个用户近期登陆系统次数
    Git分支
    如何使用Systemctl管理系统服务和单元?
    IPTables 和 Netfilter 框架
    Nginx安装及配置
    WMware Workstation——时间和时区问题
    WMware Workstation——网络类型:NAT、bridge、host-only
  • 原文地址:https://www.cnblogs.com/zzj8704/p/1756068.html
Copyright © 2020-2023  润新知