2019-03-11 02:38:26 +00:00
|
|
|
# ftp
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
> 在本地和远程 FTP 服务器之间交互式传输文件。
|
2021-10-01 19:28:01 +01:00
|
|
|
> 更多信息:<https://docs.microsoft.com/windows-server/administration/windows-commands/ftp>.
|
2019-03-11 02:38:26 +00:00
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 交互式连接一个远程的 FTP 服务:
|
2019-03-11 02:38:26 +00:00
|
|
|
|
|
|
|
`ftp {{主机名}}`
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 匿名登录:
|
2019-03-11 02:38:26 +00:00
|
|
|
|
|
|
|
`ftp -A {{主机名}}`
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 初始连接时禁用自动登录:
|
2019-03-11 02:38:26 +00:00
|
|
|
|
|
|
|
`ftp -n {{主机名}}`
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 运行包含 FTP 命令列表的文件:
|
2019-03-11 02:38:26 +00:00
|
|
|
|
|
|
|
`ftp -s:{{文件的路径}} {{主机名}}`
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 下载多个文件(通配符表达式):
|
2019-03-11 02:38:26 +00:00
|
|
|
|
|
|
|
`mget {{*.png}}`
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 上传多个文件(通配符表达式):
|
2019-03-11 02:38:26 +00:00
|
|
|
|
|
|
|
`mput {{*.zip}}`
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 在远程服务器上删除多个文件:
|
2019-03-11 02:38:26 +00:00
|
|
|
|
|
|
|
`mdelete {{*.txt}}`
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 显示详细的帮助:
|
2019-03-11 02:38:26 +00:00
|
|
|
|
|
|
|
`ftp --help`
|