LinuxCommandLibrary

ftp

File Transfer Protocol client.

TLDR

Connect to an FTP server

$ ftp [ftp.example.com]
copy


Connect to an FTP server specifying its IP address and port
$ ftp [ip_address] [port]
copy


Switch to binary transfer mode (graphics, compressed files, etc)
$ binary
copy


Transfer multiple files without prompting for confirmation on every file
$ prompt off
copy


Download multiple files (glob expression)
$ mget [*.png]
copy


Upload multiple files (glob expression)
$ mput [*.zip]
copy


Delete multiple files on the remote server
$ mdelete [*.txt]
copy


Rename a file on the remote server
$ rename [original_filename] [new_filename]
copy

SYNOPSIS

ftp [OPTION...] [HOST [PORT]]

DESCRIPTION

Remote file transfer.

-4, --ipv4

contact IPv4 hosts

-6, --ipv6

contact IPv6 hosts

-A, --active

enable active mode transfer

-d, --debug

enable debugging output

-e, --no-edit

disable command line editing

-g, --no-glob

turn off file name globbing

-i, --no-prompt

do not prompt during multiple file transfers

-n, --no-login

do not automatically login to the remote system

-N, --netrc=NETRC

select a specific initialization file

--prompt[=PROMPT]

print a command line PROMPT (optionally), even if not on a tty

-p, --passive

enable passive mode transfer, default for `pftp'

-t, --trace

enable packet tracing

-v, --verbose

verbose output

-?, --help

give this help list

--usage

give a short usage message

-V, --version

print program version

Mandatory or optional arguments to long options are also mandatory or optional for any corresponding short options.

REPORTING BUGS

Report bugs to <bug-inetutils@gnu.org>.

COPYRIGHT

Copyright © 2022 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.

SEE ALSO

ftpd(1) The full documentation for ftp is maintained as a Texinfo manual. If the info and ftp programs are properly installed at your site, the command info ftp should give you access to the complete manual.

AUTHOR

Written by many authors.

Copied to clipboard