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

📄 ftp.1c

📁 <B>Digital的Unix操作系统VAX 4.2源码</B>
💻 1C
📖 第 1 页 / 共 2 页
字号:
.\" SCCSID: @(#)ftp.1c	8.1	9/11/90.TH ftp 1c.SH Nameftp \- file transfer program.SH Syntax.B ftp[\fB\-d\fR] [[\fB\-g\fR] \fB\-i\fR] [\fB\-n\fR] [\fB\-v\fR] [\|\fIhost\fR\|].SH Description.NXR "ftp program".NXR "file" "transferring".NXR "file transfer program" "ftp program".NXR "Internet File Transfer Protocol interface" "ftp program".NXAM "ftpd server" "ftp program"The.PN ftpcommandis the user interface to the ARPANET standard File Transfer Protocol.The program allows you to transfer files to and from aremote network site..PPIf you specify the client host on the command line,.PN ftpimmediately attempts to establish a connection to an FTPserver on that host; otherwise, .PN ftpenters its command interpreter and awaits instructions.While.PN ftpis awaiting commands, it displays the prompt .PN ftp> ..SH Options.NXR "ftp program" "options".IP \fB\-d\fR 10Enables debugging..IP \fB\-g\fR 10Disables file name expansion..IP \fB\-i\fR 10Disables interactive prompting duringmultiple file transfers..IP \fB\-n\fR 10Disables autologin during an initial connection.  If auto-login is enabled, .PN ftpwill check the \f(CW.netrc\fRfile in the user's home directory for an entry describingan account on the remote machine.  If no entry exists,.PN ftpwill use the login name on the local machine as the useridentity on the remote machine, prompt for a passwordand, optionally, an account with which to log in..IP \fB\-v\fR 10Displays all responses from the remote server as well as alldata transfer statistics..SH CommandsThe commandslisted in this section are recognized by.PN ftp ..PPCommand arguments that have embedded spaces may be quoted withquotation marks (") to retain the spaces..NXR "ftp program" "command list".TP 10\fB?\fP [ \fIcommand\fP ]A synonym for .BR help ..TP.B \&!Invokes a shell on the local machine..TP\fB\&$\fP \fImacro-name\fP [ \fIargs\fP ]Executes the macro \fImacro-name\fP that was defined with the\fBmacdef\fP command.Arguments are passed to the macro unglobbed..TP\fBaccount\fP [ \fIpasswd\fP ].NXR "account command (ftp)"Supplies a supplemental password required by a remote system for accessto resources once a login has been successfully completed.If you do not supply a .PN passwdargument, you are prompted for an accountpassword in a non-echoing input mode..TP\fBappend\fP \fIlocal-file\fP [ \fIremote-file\fP ].NXR "append command (ftp)"Appends a local file to a file on the remote machine.  If.I remote-fileis not specified, the local file name is used in naming theremote file.  File transfer uses the current settings for.IR type ,.IR format ,.IR mode ,and.IR structure ..TP.B ascii.NXR "ascii command (ftp)"Sets the file transfer typeto network ASCII.  This is the default type..TP.B bell.NXR "bell command (ftp)"Sounds a bell after each file transfercommand is completed..TP.B binary.NXR "binary command (ftp)"Sets the file transfertypeto support binary image transfer..TP.B bye.NXR "bye command (ftp)"Terminates the FTP session with the remote serverand exits.PN ftp ..TP.B case.NXR "case command (ftp)"Toggles the remote computer's file name case mapping during.B mgetcommands.When.B caseis on (the default is off), the remote computer's file namesare written in the localdirectory with all letters in uppercasemapped to lowercase..TP.BI cd " remote-directory".NXR "cd command (ftp)"Changes the working directory on the remote machineto .IR remote-directory ..TP.B cdup.NXR "cdup command (ftp)"Changes the remote machine working directory to the parent of thecurrent remote machine working directory..TP.B close.NXR "close command (ftp)"Terminates the FTP session with the remote server andreturns to the command interpreter..TP.B cr.NXR "cr command (ftp)"Toggles the carriage return stripping during.B asciitype file retrieval.Records are denoted by a carriage return/linefeed sequenceduring.B asciitype file transfer.When.B cris on (the default), carriage returns are stripped from thissequence to conform with the UNIX single-linefeed recorddelimiter.Records on non-UNIX remote systems can contain single linefeeds;when an .B asciitype transfer is made, these linefeeds can bedistinguished from a record delimiter only when.B cris off..TP\fBdebug\fP [ \fIdebug-value\fP ].NXR "debug command (ftp)"Toggles the debugging mode.  If an optional.I debug-valueis specified, it is used to set the debugging level.When debugging is on,.PN ftpprints each command sent to the remote machine, precededby the string .PN ---> ..TP.BI delete " remote-file".NXR "delete command (ftp)"Deletes the file.I remote-fileon the remote machine..TP\fBdir\fP [ \fIremote-directory\fP ] [ \fIlocal-file\fP ].NXR "dir command (ftp)"Prints a listing of the contents of thedirectory.IR remote-directory ,and optionally places the output in.IR local-file .If you do not specify a directory, .PN ftpuses the current workingdirectory.  If you do not specify a localfile, .PN ftpdisplays the listing on the terminal..TP.B disconnect.NXR "disconnect command (ftp)"A synonym for.BR close ..TP.BI form " format".NXR "form command (ftp)"Sets the file transfer form to .IR format .The default format is .IR file ..TP\fBget\fP \fIremote-file\fP [ \fIlocal-file\fP ].NXR "get command (ftp)"Copies the .I remote-fileto the local machine.  If you do not specify a localfile name, .PN ftpuses the samename it has on the remote machine.The current settings for .IR type ,.IR form ,.IR mode ,and.I structureare used while transferring the file..TP.B glob.NXR "glob command (ftp)"Toggles file name expansion for .BR mdelete ,.BR mget ,and.BR mput .If globbing (file name substitution) is turned off with.BR glob ,the file name arguments are taken literally and not expanded.Globbing for .B mputis done as in.MS csh 1 .For .B mdeleteand.BR mget ,each remote file name is expanded separately on the remote machineand the lists are not merged.  Expansion of a directory name is likely tobe different from expansion of the name of an ordinary file.  The exactresult depends on the remote operating system and .PN ftpserver, and can bepreviewed by entering:  .BR mls\0\fIremote-files .Neither.B mgetnor.B mputis meant to transfer entire directory subtrees of files.  That canbe done by transferring a.MS tar 1archive of the subtree (in binary mode)..TP\fBhash\f.NXR "hash command (ftp)"Toggles the number-sign (#) printing for each data blocktransferred.  The size of a data block is 1024 bytes..TP\fBlcd\fP [ \fIdirectory\fP ].NXR "lcd command (ftp)"Changes the working directory on the local machine.  Ifyou do not specify a local directory .IR directory ,.PN ftp uses your home directory..TP\fBls\fP [ \fIremote-directory\fP ] [ \fIlocal-file\fP ].NXR "ls command (ftp)"Prints an abbreviated listing of the contents of theremote directory.  If.I remote-directoryis left unspecified, .PN ftp uses your current working directory.If you do not specify a local file, the listingis displayed on the terminal..TP\fBmacdef\fP \fImacro-name\fP.NXR "macdef command (ftp)"Defines a macro.Subsequent lines are stored as the macro\fImacro-name\fP; a null line (consecutive newline charactersin a file orcarriage returns from the terminal) terminates macro input mode.There is a limit of 16 macros and 4096 total characters in alldefined macros.Macros remain defined until a.B closecommand is executed..RS 10.sp .5The macro processor interprets dollar signs ($) andbackslashes (\e) as special characters.A dollar sign ($) followed by a number (or numbers) is replaced by thecorresponding argument on the macro invocation command line.A dollar sign ($) followed by an i signals the macro processor that theexecuting macro is to be looped. On the first pass, $i isreplaced 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 backslash (\e) followed by any character is replacedby that character.  Use the backslash (\e) to preventspecial treatment of the dollar sign ($)..RE.TP 10\fBmdelete\fP \fIremote-files\fP.NXR "mdelete command (ftp)"Deletes the specified files on the remote machine.  If globbing(file name substitution) is enabled, the wildcard specification of remote files is first expanded with.BR ls ..TP\fBmdir\fP \fIremote-files\fP \fIlocal-file\fP.NXR "mdir command (ftp)"Obtains a directory listing of multiple files on the remotemachine and places the result in.IR local-file ..TP\fBmget\fP \fIremote-files\fP.NXR "mget command (ftp)"Retrieves the specified files from the remote machine andplaces them in the current local directory.  If globbingis enabled, the specification of remote files is first expanding with.PN ls ..TP\fBmkdir\fP \fIdirectory-name\fP.NXR "mkdir command (ftp)"Makes a directory on the remote machine..TP\fBmls\fP \fIremote-files\fP \fIlocal-file\fP.NXR "mls command (ftp)"Obtains an abbreviated listing of multiple files on the remotemachine and places the result in.IR local-file ..TP\fBmode\fP [ \fImode-name\fP ].NXR "mode command (ftp)"Sets the file transfer mode to.IR mode-name .The default mode is the stream mode..TP\fBmput\fP \fIlocal-files\fP.NXR "mput command (ftp)"Transfers multiple local files from the current local directoryto the current working directory on the remote machine..TP\fBnmap\fP [ \fIinpattern\fP \fIoutpattern\fP ].NXR "nmap command (ftp)"Sets or disables the file name mapping mechanism.If no arguments are specified, the file name mapping mechanism is disabled.If arguments are specified, remote file names are mapped during.B mputcommands and.B putcommands that are issued without a specified remotetarget file name.If arguments are specified, local file names are mapped during.B mgetcommands and.B getcommands that are issued without a specified local target filename..RS 10.sp .5This command is useful when connecting to a non-UNIX remote computerwith different file naming conventions or practices.The mapping follows the pattern set by.I inpatternand.IR outpattern ..PPThe.I inpatternis a template for incoming file names (which may have already beenprocessed according to the.B ntransand.B casesettings).Specify variable templates by including thesequences $1, $2, ..., $9 in.IR inpattern .Use a backslash (\e) to prevent this special treatment ofthe dollar sign ($) character.All other characters are treated literally, and are used to determine the.B nmap.I inpatternvariable values.For example, given.I inpattern$1.$2 and the remote file name .PN mydata.data ,$1 has the value.PN mydata ,and $2 has the value.PN data ..PPThe.I outpatterndetermines the resulting mapped file name.The sequences $1, $2, ...., $9 are replaced by any valueresulting from the.I inpatterntemplate.The sequence $0 is replace by the original file name.Additionally, the sequence [\fIseq1\fP,\fIseq2\fP] is replaced by.I seq1if.I seq1is not a null string; otherwise it is replaced by.IR seq2 .For example, the command .PN nmap\0$1.$2.$3\0[$1,$2].[$2,file]yieldsthe output file name .PN myfile.datafor input file names .PN myfile.dataand.PN myfile.data.old ,.PN myfile.filefor the input file name.PN myfile ,and.PN myfile.myfilefor the input file name \f(CW.myfile\fR.Spaces can be included in.IR outpattern ,as in the example: .PN nmap\0$1\0|sed\0"s/\0\0*$//"\0>\0$1 .Use the backslash (\e) to prevent special treatmentof the dollar sign ($), left bracket ([), right bracket (]),and comma (,)..RE.TP 10\fBntrans\fP [ \fIinchars\fP [ \fIoutchars\fP ] ].NXR "ntrans command (ftp)"Sets or disables the file name character translation mechanism.If no arguments are specified, the file name charactertranslation mechanism is disabled.If arguments are specified, characters inremote file names are translated during.B mputcommands and.B putcommands that are issued without a specified remote target filename.If arguments are specified, characters inlocal file names are translated during.B mgetcommands and.B getcommands that are issued without a specified local target filename..RS 10.sp .5This command is useful when connecting to a non-UNIX remote computerwith different file naming conventions or practices.Characters in a file name matching a character in.I incharsare replaced with the corresponding character in

⌨️ 快捷键说明

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