• linux-ftp-command


     1 http://blog.chinaunix.net/u/15200/showart_299136.html
     2 
     3 %ftp 主机名/IP  /*登录ftp服务器,会提示输入用户名和密码*/
     4 
     5 匿名登录:用户名输入:anonymous  密码输入:一个邮箱格式的任意字符串
     6 
     7 FTP>ascii: 设定以ASCII方式传送文件(缺省值)
     8 FTP>bell: 每完成一次文件传送,报警提示.
     9 FTP>binary: 设定以二进制方式传送文件.
    10 FTP>bye: 终止主机FTP进程,并退出FTP管理方式.
    11 FTP>case: 当为ON时,用MGET命令拷贝的文件名到本地机器中,全部转换为小写字母.
    12 FTP>cd: 同UNIX的CD命令.
    13 FTP>cdup: 返回上一级目录.
    14 FTP>chmod: 改变远端主机的文件权限.
    15 FTP>close: 终止远端的FTP进程,返回到FTP命令状态, 所有的宏定义都被删除.
    16 FTP>delete: 删除远端主机中的文件.
    17 FTP>dir [remote-directory] [local-file] 列出当前远端主机目录中的文件.如果有本地文件,就将结果写至本地文件.
    18 FTP>get [remote-file] [local-file] 从远端主机中传送至本地主机中.
    19 FTP>help [command] 输出命令的解释.
    20 FTP>lcd: 改变当前本地主机的工作目录,如果缺省,就转到当前用户的HOME目录.
    21 FTP>ls [remote-directory] [local-file] 同DIR.
    22 FTP>macdef: 定义宏命令.
    23 FTP>mdelete [remote-files] 删除一批文件.
    24 FTP>mget [remote-files] 从远端主机接收一批文件至本地主机.
    25 FTP>mkdir directory-name 在远端主机中建立目录.
    26 FTP>mput local-files 将本地主机中一批文件传送至远端主机.
    27 FTP>open host [port] 重新建立一个新的连接.
    28 FTP>prompt: 交互提示模式.
    29 FTP>put local-file [remote-file] 将本地一个文件传送至远端主机中.
    30 FTP>pwd: 列出当前远端主机目录.
    31 FTP>quit: 同BYE.
    32 FTP>recv remote-file [local-file] 同GET.
    33 FTP>rename [from] [to] 改变远端主机中的文件名.
    34 FTP>rmdir directory-name 删除远端主机中的目录.
    35 FTP>send local-file [remote-file] 同PUT.
    36 FTP>status: 显示当前FTP的状态.
    37 FTP>system: 显示远端主机系统类型.
    38 FTP>user user-name [password] [account] 重新以别的用户名登录远端主机.
    39 FTP>? [command]: 同HELP. [command]指定需要帮助的命令名称。如果没有指定 command,ftp 将显示全部命令的列表。
    40 FTP>! 从 ftp 子系统退出到外壳。
  • 相关阅读:
    软件架构设计箴言理解
    解决vs2010没有NET Framework 2.0和3.5
    .NET连接数据库实例
    CSS选择器大全
    SilverLight全屏代码
    SilverLight数字时钟 > 我的博客有SilverLight了
    comboBox设置为只读(只选)
    WinForm 单例模式实例
    标识种子和标识增量
    jQuery固定DIV实现“返回顶部”
  • 原文地址:https://www.cnblogs.com/symons1992/p/3232344.html
Copyright © 2020-2023  润新知