Name

FTP — windowssystem32ftp.exe

Synopsis

FTP (File Transfer Protocol) is used to transfer files to and from a remote computer, typically over an Internet connection. When you start FTP, you are connecting to a remote host, to which commands are issued by typing in the prompt. (If you specify an ftp:// URL, the commands are typed automatically.)

Command

Description

ascii

Sets the file transfer type to ASCII (plain text), useful if you're transferring text files between Unix and Windows systems. Such translation will corrupt binary files, though, so you should use the binary command if you're not transferring ASCII files.

binary

Sets the file transfer type to binary, a crucial step for transferring nontext files (such as.zip, .gif, and .doc) between Unix and Windows-based machines. See also: ascii.

bye

Disconnects and ends the FTP session.

cd remote_folder

Changes the working directory on the remote computer (to cd on the local machine, use lcd).

delete remote_file

Deletes a single file on the remote computer. To delete multiple files with wildcards (see Chapter 6), use mdelete instead.

dir

Displays a list of the contents of the working directory on the remote computer, with details. See dir in Chapter 6.

get remote_file [local_file]

Transfers remote_file from the server to the local machine, optionally renaming it to local_file. If transferring binary (nontext) files, use the binary command first. To transfer multiple files with wildcards, use mget instead.

lcd [directory]

Changes the working directory on the local computer.

mkdir directory

Creates a remote directory; see mkdir in Chapter 6.

prompt

Turns on or off prompting for multiple file transfers (mput, mget, etc.)

put local_file [remote_file]

Transfers local_file from the server to the local machine, optionally renaming it to remote_file. If transferring binary (nontext) files, use the binary command first. To transfer multiple files with wildcards, use mput instead.

rmdir remote_directory

Deletes a remote directory.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset