⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 581-583.html

📁 linux-unix130.linux.and.unix.ebooks130 linux and unix ebookslinuxLearning Linux - Collection of 12 E
💻 HTML
字号:
<HTML>

<HEAD>

<TITLE>Special Edition Using Linux, Fourth Edition:Accessing the Network with telnet, ftp, and the r-Commands</TITLE>

<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
<SCRIPT>
<!--
function displayWindow(url, width, height) {
        var Win = window.open(url,"displayWindow",'width=' + width +
',height=' + height + ',resizable=1,scrollbars=yes');
}
//-->
</SCRIPT>
</HEAD>

 -->




<!--ISBN=0789717468//-->

<!--TITLE=Special Edition Using Linux, Fourth Edition//-->

<!--AUTHOR=Jack Tackett//-->

<!--AUTHOR=Jr.//-->

<!--AUTHOR=Steve Burnett//-->

<!--PUBLISHER=Macmillan Computer Publishing//-->

<!--IMPRINT=Que//-->

<!--CHAPTER=30//-->

<!--PAGES=581-583//-->

<!--UNASSIGNED1//-->

<!--UNASSIGNED2//-->



<CENTER>

<TABLE BORDER>

<TR>

<TD><A HREF="579-581.html">Previous</A></TD>

<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>

<TD><A HREF="583-585.html">Next</A></TD>

</TR>

</TABLE>

</CENTER>

<P><BR></P>

<P>The Linux <TT>ftp</TT> command provides a verbose set of command options in interactive mode. As mentioned earlier, some remote hosts might not support all these commands. Also, you probably won&#146;t need to use many of them. Table 30.2 lists the commands available while in FTP.</P>

<TABLE WIDTH="100%"><CAPTION ALIGN=LEFT><B>Table 30.2</B> <TT>ftp</TT> Commands Available in Interactive Mode

<TR>

<TH COLSPAN="2"><HR>

<TR>

<TH WIDTH="20%" ALIGN="LEFT">Command

<TH WIDTH="80%" ALIGN="LEFT">Description

<TR>

<TH COLSPAN="2"><HR>

<TR>

<TD><TT>!</TT>

<TD>Escapes to the shell

<TR>

<TD><TT>$</TT>

<TD>Executes a macro

<TR>

<TD><TT>account</TT>

<TD>Sends the account command to remote server

<TR>

<TD><TT>append</TT>

<TD>Appends to a file

<TR>

<TD><TT>ascii</TT>

<TD>Sets the file-transfer type to ASCII mode

<TR>

<TD><TT>bell</TT>

<TD>Beeps when a command is completed

<TR>

<TD><TT>binary</TT>

<TD>Sets the file-transfer type to binary mode

<TR>

<TD><TT>bye</TT>

<TD>Terminates the FTP session and exits

<TR>

<TD><TT>case</TT>

<TD>Toggles <TT>mget</TT> upper- or lowercase filename mapping

<TR>

<TD><TT>cd</TT>

<TD>Changes the working directory on the remote computer

<TR>

<TD><TT>cdup</TT>

<TD>Changes the remote working directory to the parent directory

<TR>

<TD><TT>chmod</TT>

<TD>Changes file permissions of the remote file

<TR>

<TD><TT>close</TT>

<TD>Terminates the FTP session

<TR>

<TD><TT>cr</TT>

<TD>Toggles carriage return stripping when receiving an ASCII file

<TR>

<TD><TT>delete</TT>

<TD>Deletes the remote file

<TR>

<TD><TT>debug</TT>

<TD>Toggles debugging mode

<TR>

<TD VALIGN="TOP"><TT>dir</TT>

<TD>Lists the contents of the remote directory (gives size and permissions)

<TR>

<TD><TT>disconnect</TT>

<TD>Terminates the FTP session (same as <TT>close</TT> )

<TR>

<TD><TT>exit</TT>

<TD>Terminates the FTP session and exits

<TR>

<TD><TT>form</TT>

<TD>Sets the file-transfer format

<TR>

<TD><TT>get</TT>

<TD>Gets a file from the remote computer

<TR>

<TD><TT>glob</TT>

<TD>Toggles wildcard expansion of local filenames

<TR>

<TD><TT>hash</TT>

<TD>Toggles printing the # character for each buffer transferred

<TR>

<TD><TT>help</TT>

<TD>Prints local help information

<TR>

<TD><TT>idle</TT>

<TD>Gets or sets the idle timer on the remote computer

<TR>

<TD><TT>image</TT>

<TD>Sets the file transfer type to binary mode (same as <TT>binary</TT> )

<TR>

<TD><TT>lcd</TT>

<TD>Changes the local working directory

<TR>

<TD VALIGN="TOP"><TT>ls</TT>

<TD>Lists the contents of the remote directory (gives size and permissions)

<TR>

<TD><TT>macdef</TT>

<TD>Defines a macro

<TR>

<TD><TT>mdelete</TT>

<TD>Deletes multiple files on the remote computer

<TR>

<TD><TT>mdir</TT>

<TD>Lists the contents of multiple remote directories

<TR>

<TD><TT>mget</TT>

<TD>Gets multiple files from the remote computer

<TR>

<TD><TT>mkdir</TT>

<TD>Makes a directory on the remote machine

<TR>

<TD><TT>mls</TT>

<TD>Lists the contents of multiple remote directories

<TR>

<TD><TT>mode</TT>

<TD>Sets the file-transfer mode

<TR>

<TD><TT>modtime</TT>

<TD>Shows the last modification time of the remote file

<TR>

<TD><TT>mput</TT>

<TD>Sends multiple files to the remote computer

<TR>

<TD VALIGN="TOP"><TT>newer</TT>

<TD>Gets a remote file if the remote file is newer than the corresponding local file

<TR>

<TD><TT>nmap</TT>

<TD>Sets templates for default filename mapping

<TR>

<TD><TT>nlist</TT>

<TD>Lists the contents of the remote directory

<TR>

<TD><TT>ntrans</TT>

<TD>Sets the translation table for default filename mapping

<TR>

<TD><TT>open</TT>

<TD>Connects to the remote FTP site

<TR>

<TD><TT>passive</TT>

<TD>Enters passive transfer mode

<TR>

<TD><TT>prompt</TT>

<TD>Forces interactive prompting on multiple commands

<TR>

<TD><TT>proxy</TT>

<TD>Issues command on alternate connection

<TR>

<TD><TT>put</TT>

<TD>Sends one file to the remote computer

<TR>

<TD><TT>pwd</TT>

<TD>Prints the working directory on the remote machine

<TR>

<TD><TT>quit</TT>

<TD>Terminates the FTP session and exits

<TR>

<TD><TT>quote</TT>

<TD>Sends an arbitrary <TT>ftp</TT> command

<TR>

<TD><TT>recv</TT>

<TD>Receives a file

<TR>

<TD><TT>reget</TT>

<TD>Gets file restarting at end of the local file

<TR>

<TD><TT>rstatus</TT>

<TD>Shows the status of the remote machine

<TR>

<TD><TT>rhelp</TT>

<TD>Gets help from the remote server

<TR>

<TD><TT>rename</TT>

<TD>Renames a file

<TR>

<TD><TT>reset</TT>

<TD>Clears queued command replies

<TR>

<TD><TT>restart</TT>

<TD>Restarts the file transfer at the specified byte count

<TR>

<TD><TT>rmdir</TT>

<TD>Removes a directory on the remote machine

<TR>

<TD VALIGN="TOP"><TT>runique</TT>

<TD>Assigns a unique filename to each file received when retrieving multiple files with the same filename to the same directory

<TR>

<TD><TT>send</TT>

<TD>Sends one file to the remote computer

<TR>

<TD VALIGN="TOP"><TT>site</TT>

<TD>Sends a site-specific command to the remote server, one of <TT>umask</TT>, <TT>idle</TT>, <TT>chmod</TT>, <TT>help</TT>, <TT>group</TT>, <TT>gpass</TT>, <TT>newer</TT>, or <TT>minfo</TT>

<TR>

<TD><TT>size</TT>

<TD>Shows the size of the remote file

<TR>

<TD><TT>status</TT>

<TD>Shows the current status

<TR>

<TD><TT>struct</TT>

<TD>Sets the file-transfer structure

<TR>

<TD><TT>system</TT>

<TD>Shows the remote system type

<TR>

<TD VALIGN="TOP"><TT>sunique</TT>

<TD>When sending multiple files with the same filename to the same directory, assigns a unique filename to each file sent

<TR>

<TD><TT>tenex</TT>

<TD>Sets the <TT>tenex</TT> file-transfer type

<TR>

<TD><TT>tick</TT>

<TD>Toggles printing byte size counter during transfers

<TR>

<TD><TT>trace</TT>

<TD>Toggles packet tracing

<TR>

<TD><TT>type</TT>

<TD>Sets the file-transfer type

<TR>

<TD><TT>user</TT>

<TD>Sends new user information

<TR>

<TD><TT>umask</TT>

<TD>Gets or sets the <TT>umask</TT> on the remote computer

<TR>

<TD><TT>verbose</TT>

<TD>Toggles verbose mode

<TR>

<TD><TT>?</TT>

<TD>Prints local help information

<TR>

<TD COLSPAN="2"><HR>

</TABLE>

<P><BR></P>

<CENTER>

<TABLE BORDER>

<TR>

<TD><A HREF="579-581.html">Previous</A></TD>

<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>

<TD><A HREF="583-585.html">Next</A></TD>

</TR>

</TABLE>

</CENTER>





</td>
</tr>
</table>

<!-- begin footer information -->





</body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -