put commands only transfer single files. To transfer multiple files, you can use the commands
Transferring files from your computer to another
- To transfer files to another computer, open an FTP connection to that computer.
- To move files from the current directory of your computer, use the
mputcommand.For example, to move files named
mystufffrom the current directory of your computer, at the FTP prompt, enter:
The asterisk (
*) is a wildcard that tells FTP to match all files starting with
my. You can also use a question mark (
?) to match a single letter. To interrupt the series of transfers, press
Ctrl-c, and FTP will ask you whether you want to continue.
- When prompted, enter
yto transfer each file. To turn this feature off, before you begin transferring files, at the FTP prompt, enter:
Transferring files from a different computer to yours
- Open an FTP connection to another computer.
- To retrieve files, use the
mgetcommand.For example, to retrieve files named
myfile3from another computer, at the FTP prompt, enter:
- If prompted, enter
yto transfer each file.
If the files you’re transferring are anything other than plain ASCII text files, specify a binary transfer before sending or receiving. To do so, at the FTP prompt, enter:
binary Transfer files without "Y" to accept transfer.
1)when you are accessing FTP server use -i option which is nothing but interactive way to get files from FTP server, actually this -i option will disable iteractive download of files from server.
ftp -i server-ip/servername
#ftp -i 220.127.116.11
2)This is used when you are middle of the transaction you can use prompt command in ftp mode to get multiple files without any prompt, here is the example and this is for that session