2018-06-28 14:14:55 +01:00
|
|
|
# ftp
|
|
|
|
|
|
|
|
> Interactively transfer files between a local and remote FTP server.
|
2022-10-04 16:06:23 +01:00
|
|
|
> More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/ftp>.
|
2018-06-28 14:14:55 +01:00
|
|
|
|
|
|
|
- Connect to a remote FTP server interactively:
|
|
|
|
|
|
|
|
`ftp {{host}}`
|
|
|
|
|
|
|
|
- Log in as an anonymous user:
|
|
|
|
|
|
|
|
`ftp -A {{host}}`
|
|
|
|
|
|
|
|
- Disable automatic login upon initial connection:
|
|
|
|
|
|
|
|
`ftp -n {{host}}`
|
|
|
|
|
|
|
|
- Run a file containing a list of FTP commands:
|
|
|
|
|
2023-02-20 07:23:49 +00:00
|
|
|
`ftp -s:{{path\to\file}} {{host}}`
|
2018-06-28 14:14:55 +01:00
|
|
|
|
|
|
|
- Download multiple files (glob expression):
|
|
|
|
|
|
|
|
`mget {{*.png}}`
|
|
|
|
|
|
|
|
- Upload multiple files (glob expression):
|
|
|
|
|
|
|
|
`mput {{*.zip}}`
|
|
|
|
|
|
|
|
- Delete multiple files on the remote server:
|
|
|
|
|
|
|
|
`mdelete {{*.txt}}`
|
|
|
|
|
|
|
|
- Display detailed help:
|
|
|
|
|
|
|
|
`ftp --help`
|