With command line FTP, how can I transfer a group of files without typing out all their names?
only transfer single files. To transfer multiple files, you can use
Transferring files from your computer to another
- To transfer files to another computer, open an FTP connection to
- To move files from the current directory of your computer, use the
For example, to move files namedmput my*
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: prompt
Transferring files from a different computer to yours
- Open an FTP connection to another computer.
- To retrieve files, use the
For example, to retrieve files namedmget myfile?
myfile3from another computer, at the FTP prompt, enter:
- If prompted, enter
yto transfer each file.
Note: 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 At IU, how do I get support for Linux or Unix?
Last modified on May 13, 2009.