Console FTP Commands

The following terms are helpful in order to understand the above example of command-line FTP:

Command

Description

ascii

Set the file transfer type to network ASCII.

binary

Set the file transfer type to support binary files.

bye or quit

Terminate the FTP remote session and exit FTP. An end of file also terminates the session.

cd remote-directory

Change the working directory on the remote computer to remote-directory.

delete remote-file

Delete the file remote-file on the remote computer.

dir or ls remote-dir

Print a directory contents list in the directory, remote-directory. If no remote directory is specified, a list of the current working directory on the remote computer is displayed.

get remote-file local-file

Retrieve the remote-file and store it on the local computer. If the local file name is not specified, it is given the same name it has on the remote computer.

help command

Print an informative message about the meaning of command. If no argument is given, FTP prints a list of the known commands.

lcd local-directory

Change the working directory on the local computer. If no directory is specified, the user's current local working directory is displayed.

mdelete remote-files

Delete the remote-files on the remote computer.

mget remote-files

Expand the remote-files on the remote computer and do a get for each file name thus produced.

mkdir remote-directory

Make a directory on the remote computer.

mput local-files

Expand wild cards in the list of local files given as arguments and do a put for each file in the resulting list.

prompt

Toggle interactive prompting. Interactive prompting occurs during multiple file transfers to allow the user to selectively retrieve or store files. If prompting is turned off (default is on), any mget or mput transferred all files, and any mdelete deleted all files.

put local-file remote-file

Store a local file on the remote computer. If remote-file is left unspecified, the local file name is used.

rename from to

Rename the file on the remote computer to the file on local computer.

rmdir directory-name

Delete a directory on the remote computer.

Back