0149-0149.html
来自「linux-unix130.linux.and.unix.ebooks130 l」· HTML 代码 · 共 156 行
HTML
156 行
<HTML>
<HEAD>
<TITLE>Linux Complete Command Reference:User Commands:EarthWeb Inc.-</TITLE>
</HEAD>
<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=0672311046 //-->
<!-- TITLE=Linux Complete Command Reference//-->
<!-- AUTHOR=Red Hat//-->
<!-- PUBLISHER=Macmillan Computer Publishing//-->
<!-- IMPRINT=Sams//-->
<!-- CHAPTER=01 //-->
<!-- PAGES=0001-0736 //-->
<!-- UNASSIGNED1 //-->
<!-- UNASSIGNED2 //-->
<P><CENTER>
<a href="0146-0148.html">Previous</A> | <a href="../ewtoc.html">Table of Contents</A> | <a href="0150-0151.html">Next</A></CENTER></P>
<A NAME="PAGENUM-149"><P>Page 149</P></A>
<TABLE>
<TR><TD>
debug [debug-value]
</TD><TD>
Toggle debugging mode. If an optional
debug-value is specified, it is used to set the debugging level. When debugging is on,
ftp prints each command sent to the remote machine, preceded by the string
—>.
</TD></TR><TR><TD>
dir [remote-directory] [local-file]
</TD><TD>
Print a listing
of the directory contents in the directory,
remote-directory, and, optionally, placing the output in
local-file. If interactive prompting is on, ftp
will prompt the user to verify that the last argument is indeed the target local file
for receiving dir output. If no directory is specified, the current working directory
on the remote machine is used. If no local file is specified, or
local-file is -, output comes to the terminal.
</TD></TR><TR><TD>
disconnect
</TD><TD>
A synonym for close.
</TD></TR><TR><TD>
form format
</TD><TD>
Set the file transfer form to
format. The default format is file.
</TD></TR><TR><TD>
get remote-file [local-file]
</TD><TD>
Retrieve the
remote-file and store it on the local machine. If the local filename
is not specified, it is given the same name it has on the remote machine, subject
to alteration by the current case, ntrans, and
nmap settings. The current settings for type, form,
mode, and structure are used while transferring the file.
</TD></TR><TR><TD>
glob
</TD><TD>
Toggle filename expansion for mdelete,
mget, and mput. If globbing is turned off with
glob, the filename arguments are taken literally and not expanded. Globbing for
mput is done as in csh 1. For mdelete and mget, each remote filename is
expanded separately on the remote machine and the lists are not merged. Expansion of
a directory name is likely to be different from expansion of the name of an
ordinary file: the exact result depends on the foreign operating system and FTP server,
and can be previewed by doing mls remote-files Note:
mget and mput are not meant to transfer entire directory subtrees of files. That can be done by transferring a
tar 1 archive of the subtree (in binary mode).
</TD></TR><TR><TD>
hash
</TD><TD>
Toggle hash-sign (#) printing for each data block transferred. The size of a data
block is 1024 bytes.
</TD></TR><TR><TD>
help [command]
</TD><TD>
Print an informative message about the meaning of
command. If no argument is given, ftp prints a list of the known commands.
</TD></TR><TR><TD>
idle [seconds]
</TD><TD>
Set the inactivity timer on the remote server to
seconds seconds. If seconds is omitted, the current inactivity timer is printed.
</TD></TR><TR><TD>
lcd [directory]
</TD><TD>
Change the working directory on the local machine. If no directory is specified,
the user's home directory is used.
</TD></TR><TR><TD>
ls [remote-directory] [local-file]
</TD><TD>
Print a listing of the contents of a directory on the remote machine. The
listing includes any system-dependent information that the server chooses to include;
for example, most systems will produce output from the command
ls l. (See also nlist.) If remote-directory is left unspecified, the current working directory is
used. If interactive prompting is on, ftp will prompt the user to verify that the
last argument is indeed the target local file for receiving
ls output. If no local file is specified, or if
local-file is -, the output is sent to the terminal.
</TD></TR><TR><TD>
macdef macro-name
</TD><TD>
Define a macro. Subsequent lines are stored as the macro
macro-name; a null line (consecutive newline characters in a file or carriage returns from the
terminal) terminates macro input mode. There is a limit of 16 macros and 4096
total characters in all defined macros. Macros remain defined until a
close command is executed. The macro processor interprets
$ and \ as special characters. A $ followed by a number (or numbers) is replaced by the corresponding argument on the
macro invocation command line. A $ followed by an
i signals that macro processor that the executing macro is to be looped. On the first pass
$i is replaced by the first argument on the macro invocation command line, on the second pass it is replaced by
the second argument, and so on. A \ followed by any character is replaced by
that character. Use the \to prevent special treatment of the
$.
</TD></TR><TR><TD>
mdelete [remote-files]
</TD><TD>
Delete the
remote-files on the remote machine.
</TD></TR></TABLE>
<P><CENTER>
<a href="0146-0148.html">Previous</A> | <a href="../ewtoc.html">Table of Contents</A> | <a href="0150-0151.html">Next</A></CENTER></P>
</td>
</tr>
</table>
<!-- begin footer information -->
</body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?