25.02.2013 Views

TCP/IP Tutorial and Technical Overview - IBM Redbooks

TCP/IP Tutorial and Technical Overview - IBM Redbooks

TCP/IP Tutorial and Technical Overview - IBM Redbooks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

518 <strong>TCP</strong>/<strong>IP</strong> <strong>Tutorial</strong> <strong>and</strong> <strong>Technical</strong> <strong>Overview</strong><br />

I Indicates that no translation is to be done on the data.<br />

On many implementations, this can be invoked by using<br />

the BINARY comm<strong>and</strong>, which the PI translates into the<br />

type I comm<strong>and</strong>.<br />

structure Specifies the structure of the file to be transferred:<br />

file Indicates that the file has no internal structure, <strong>and</strong> is<br />

considered to be a continuous sequence of data bytes.<br />

record Indicates that the file is made up of sequential records.<br />

page Indicates that the file is made up of independent indexed<br />

pages.<br />

Note: RFC 959 minimum FTP implementation includes only the<br />

file <strong>and</strong> record options for the structure comm<strong>and</strong>. Therefore,<br />

not all implementations will include the page option.<br />

Because these subcomm<strong>and</strong>s do not cover all possible differences between<br />

systems, the site subcomm<strong>and</strong> is available to issue implementation-dependent<br />

<strong>and</strong> platform-specific comm<strong>and</strong>s. The syntax of this comm<strong>and</strong> will vary by<br />

implementation.<br />

Transferring files<br />

The following comm<strong>and</strong>s can be used to copy files between FTP clients <strong>and</strong><br />

servers:<br />

get Copies a file from the remote host to the local host. The PI<br />

translates get into a RETR comm<strong>and</strong>.<br />

mget Copies multiple files from the remote to the local host. The PI<br />

translates mget into a series of RETR comm<strong>and</strong>s.<br />

put Copies a file from the local host to the remote host. The PI<br />

translates put into a STOR comm<strong>and</strong>.<br />

mput Copies multiple files from the local host to the remote host. The<br />

PI translates mput into a series of STOR comm<strong>and</strong>s.<br />

Terminating the FTP session<br />

The following comm<strong>and</strong>s are used to end an FTP session:<br />

quit Disconnects from the remote host <strong>and</strong> terminates FTP. Some<br />

implementations use the BYE subcomm<strong>and</strong>.<br />

close Disconnects from the remote host but leaves the FTP client<br />

running. An open comm<strong>and</strong> can be issued to establish a new<br />

control connection.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!