Transfer a group of files without typing the names using command line FTP
The FTP get
and put
commands only transfer single files. To transfer multiple files, you can use the commands mget
and mput
.
Transfer 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
mput
command.For example, to move files named
myfile
,mynotes
, andmystuff
from the current directory of your computer, at the FTP prompt, enter:mput my*
The asterisk (
*
) is a wildcard that tells FTP to match all files starting withmy
. You can also use a question mark (?
) to match a single letter. To interrupt the series of transfers, pressCtrl-c
, and FTP will ask you whether you want to continue. - When prompted, enter
y
to transfer each file. To turn this feature off, before you begin transferring files, at the FTP prompt, enter:prompt
Transfer files from a different computer to yours
- Open an FTP connection to another computer.
- To retrieve files, use the
mget
command.For example, to retrieve files named
myfile1
,myfile2
, andmyfile3
from another computer, at the FTP prompt, enter:mget myfile?
- If prompted, enter
y
to 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
At Indiana University, for personal or departmental Linux or Unix systems support, see Get help for Linux or Unix at IU.
Related documents
This is document aceu in the Knowledge Base.
Last modified on 2023-06-27 11:47:09.