|
|
|
|
|
|
|
Your forum announcement here!
|
|
General Free Advertising Directories This is a list of general free advertising directories. |
08-29-2011, 04:58 AM
|
#1
|
|
lebron 8| Buy new
More Amazon.com Search Results for "william" More William, air force 1
Buy new: $9.99
1 Used & new from $9.99
More William
Buy new:
William and Kate: The Love Story
Buy new: $26.00 $10.14
9 Used & fashionable from $9.60
See entire 907, lebron 8,416 results Free Two-Day Shipping is available to Amazon Prime members. To add, press "Add to Cart with FREE Two-Day Shipping" and validation your Amazon Prime Free Trial sign-up during checkout.
Amazon Prime members enjoy:
Unlimited Free Two-Day Shipping One-Day Shipping for fair $3.99/item No Minimum Purchase for free or deducted boating
Important: Your card will NOT be charged while you start your Free Trial alternatively if you annul during the trial phase. If you're merry with Amazon Prime, do nothing. At the end of the Free Trial, Supra Shoes, your membership ambition automatically upgrade apt a full annual because $79.
|
|
|
08-29-2011, 05:45 AM
|
#2
|
Commander In Chief
Join Date: Sep 2010
Posts: 588
|
FTP is a File Transfer Protocol (file transfer protocol) the title, while the Chinese referred to as Control file on the Internet for two-way transmission. At the same time, it is an application (Application). Users can use it to your PC, all running around the world connected to the server FTP protocol to access a large number of server processes and information. The main function of FTP is to allow users to connect to a remote computer (the computer running the FTP server program) which look at the remote computer files, then copying the file from a remote computer on the local computer, or sent to the local computer's file to the remote computer.
directory
Work example anonymous ftp transfer protocol server system user account Category Real Guest user Anonymous (anonymous) users to transmit details of the transfer mode starts work FAQ About command parameter descriptor command uses the syntax sub-command (prompt) Example protect enterprise security best practices FTP program profiles Funds Transfer Pricing: Transfer pricing of funds works to download the example files, for example, when you start the FTP to copy files from a remote computer when you actually start two procedures: a local FTP client on the machine, which copy files to the FTP server make the request. Another is to start on the remote computer's FTP server program, which responds to your request to transfer the files you specify to your computer. FTP using FTP client interface and the graphical interface has two characters. Character FTP command interface complexity, variety. Graphical FTP client, the operation simple and convenient to many. Transfer Protocol simply, server support FTP protocol is FTP server, the following explanation of what FTP protocol. (File Transfer Protocol) In general, the use of the Internet's primary purpose is information sharing, file transfer, information sharing is a very important content. Internet to transfer files on the early implementation is not an easy thing to do, nike air force one low, we know that Internet is a very complex computer environment, PC, a workstation, a MAC, a mainframe, and a computer connected to the Internet, there are tens of millions of units and these computers may run different operating systems, Unix servers are running, but also to run Dos, Windows for PC machines and Macs running MacOS, etc., and all kinds of files between the operating system communication problems, the need for a unified File Transfer Protocol, which is called FTP. Based on different operating systems have different FTP applications, all of which applications are to comply with a protocol, so users can transfer your files to others or the environment from other users to access a file. Server system, like with most Internet services, FTP is a client / server systems. The user through a protocol to support FTP client program to connect to the remote host FTP server program. The user through a client program to the server program issued a command, the server program executes the commands issued by the user and returns the results of the implementation to the client. For example, the user issues a command, ask the server to the user to send a copy of a file, the server will respond to this command, the specified documents to the user's machine. Client program on behalf of the user receives this file, be stored in the user directory. Use them in the FTP, users often encounter two concepts: Used Internet language, users can program to the client (from) the remote host upload (downloading) files. When using FTP you must first log on the remote host to obtain the appropriate permissions, you only download or upload files. In other words, in order to transfer files with which computer to which computer must have the proper authorization. In other words, unless a user ID and password, otherwise it can not send files. That it violates the open Internet, Internet far more than a million on the FTP host, can not require each user to have each host account. Anonymous FTP is to solve the problems that arise. Anonymous FTP is a mechanism, through which users can connect to a remote host, and its download files without having to become registered users. The system administrator to create a special user ID, name anonymous, Internet on any person in any place can use the user ID. Anonymous FTP FTP program to connect through the host's way of connecting with the way ordinary FTP host, only in user ID in the request ID must be entered when the anonymous, the user ID's password can be any string. Traditionally, with their E-mail address as the password, the system maintenance program can record who is accessing these files. It is noteworthy that, anonymous FTP does not apply to all Internet hosts, it only applies to those providing the service host. When the remote host to provide anonymous FTP service, you specify certain directories to the public, to allow anonymous access. The rest of the system directory is in a hidden state. As a security measure, most of the anonymous FTP from the host allow users to download files, and does not allow users to upload files to him, that is, anonymous FTP users can host all the copies of all documents to your machine , but can not own any of the files on the machine copy to anonymous FTP host. Even if some anonymous FTP host does allow users to upload files, the user can only upload files to a specified upload directory. Subsequently, the system administrator to check the files, he would download these files to another directory in the public for other users to download, use this way, the remote host users have been protected to avoid some problems uploading documents, such as files with the virus. As an Internet user, via FTP in any copy files between two Internet hosts. But, in fact, most people have only one Internet account, FTP is mainly used to download public documents, such as sharing software, the technical support documents. There are thousands of anonymous Internet FTP host, the hosts kept the numerous documents for a free copy of the user. In fact, almost all types of information, all types of computer programs can be found on the Internet. This is the Internet to attract our important reasons. Anonymous ftp Anonymous FTP enables users to have the opportunity to access to the world's largest repository of information, the information base is up over time, and still growing, and never closed, involving almost all topics. And, all this is free. Internet Anonymous FTP is a common method of online publishing software. Internet has been able to continue to this day, because people use the standard services provided by standard protocol procedures. Program like this, there are many that is released via anonymous FTP, anyone can access them. There are a huge number of Internet in the anonymous FTP host, and more files, then in the end how can we know what a particular file is located in the anonymous FTP directory on the host it? This is the Archie server to complete the work. Archie will automatically search in the FTP host, file directory structure that contains all the information database, so you can find the file location information. Real user classification refers to accounts of these users have an account on the FTP service. When such users log on when the FTP server, the default home directory is a directory of its account name. However, it also can change to another directory. Such as the system's home directory and so on. Guest user FTP server, we tend to give a different department or a specific user set up an account. However, this account has a feature, is its only access to your home directory. Server through FTP service in this way to protect the security of other documents. Such accounts, in Vsftpd software called Guest users. Possession of such user's account can only access their home directory under the directory, but not access files outside the home directory. Anonymous (anonymous) users that is what we usually refer to anonymous access. Such user is not specified in the FTP server account, but it can still be anonymous access to certain public resources. FTP server in the formation of the time, we need the type of the user, the user classification. By default, Vsftpd server will create all the accounts are assigned to Real users. However, this often does not meet the enterprise security needs. Because these users can not only access their home directory, and that other users can access the directory. This is where the space to other users has brought a security risk. Therefore, enterprises should the actual situation, to modify the categories the user is. [1] start remote file transfer method requires the computer must be installed and run ftp client. In the windows during the installation of the operating system, usually installed tcp / ip protocol software, which will contain the ftp client. But the program is a graphical interface instead of the character interface, which must operate the way the command prompt, very convenient. Start the ftp client to work another way is to use the ie browser, the user need only input the address bar in ie's url address the following format: ftp:// [username: password @] ftp server name: [port number] ( In the CMD command line using the above method can also be connected, through the put command and the command to get the purpose of uploading and downloading through the ls command to list the directory, in addition to the above methods but can also enter the ftp cmd enter, then enter the open IP to establish a connection, this method also applies to connection under linux ftp server), ie a browser start by way Although you can use ftp, but slower, but also expose the password in the browser ie without security. So generally installed and running special ftp client. 1. On the local computer, log on to the Internet. 2. Search for a file sharing host or personal computer (usually a dedicated FTP server published on the website, above or personal computer to enter the host name, password, and path). 3 . When the remote host or each other's personal computer connection is established, with each other to provide the user name and password to log in to the host or each other's personal computers. 4. in the remote host PC or other successful landing, you can upload your want to share something or download something other authorized share (where things are those that go into computers and can see things on the screen). 5. to complete its work and close FTP download software, cutting off connections. In order to achieve file transfer, the user must run a special file transfer program such as Flashget have this function, there are many other specialized FTP transfer software, FlashFxp as one of the outstanding software. Interested users can try other software, such as LeapFTP is always different in style. Transfer details TCP / IP protocol, FTP standard commands for the TCP port number 21, Port way data port is 20. FTP task is a file from one computer to another computer, without operating system constraints. FTP transfer mode transmission in two ways: ASCII, binary. ASCII transfer method assumes that the user is a simple copy of the file contains ASCII code text, if the remote machine is not running on UNIX, typically when the file transfer ftp files will be automatically adjusted so that the paper explains the contents into another computer store that text file format. But often this is the case, the user is the file transfer is not included in text files, they may be procedures, databases, word processing files or compressed files. In the copy before any non-text files, using ftp binary command tells verbatim copy. Binary transfer mode in the binary transmission, the bit sequence to save the file to the original and the copy is bit-by-one correspondence. Even if the destination machine, the file contains the bit sequence is meaningless. For example, macintosh transmitted in binary executable file to the Windows system, other systems, this file can not be executed. As in ASCII mode to transfer binary files, even if not still translated. This will damage the data. (ASCII mode is generally assumed the first significant bit of each character is meaningless, because the combination of ASCII characters do not use it. If you transfer a binary file, all the bits are important.) Work FTP supports two modes: Standard (PORT mode , active mode), Passive (PASV, passive mode). Port mode FTP client and server first establish a connection to TCP 21 port used to send the command, the client needs to receive data channel, when sending in the PORT command. PORT command contains the client what port to receive data. When sending data, server-side through the TCP 20 port to connect your client to send data to the specified port. FTP server and the client must establish a new connection to transfer data. Passive mode and Standard mode control channel to establish a similar, but the connection is established to send Pasv command. Server receives Pasv command, open a temporary port (port number greater than 1023 less than 65535) and notify the client in this port to send data requests, FTP server, the client connection port, and then FTP server will send through this port data. Many firewall settings are not allowed to accept outside when the connection was launched, many located within the network firewall or FTP server does not support PASV mode, because the client can not open the FTP server through the firewall, the high end of the port; and many within the network client can not login with FTP server PORT mode, because the server's TCP 20 and the internal network can not create a new client connection, resulting not work. FAQ 1. FTP What is it? (See FTP simulation [2]) A: FTP is the abbreviation for File Transfer Protocol, the file transfer protocol for transferring files over the Internet, FTP file transfers usually refers to the application, divided into FTP client and FTP server program. 2. FTP do? A: FTP FTP client can connect to the FTP server, download files from FTP server to FTP client, or FTP client to upload files to FTP server. 3. FTP requires two TCP connections why? A: Client control connection with the transfer command, the server used to direct response answer. data connection is used to transfer files. FTP uses two connections to the command and data in the form of independent development, without disturbing each other. 4. Establish / close FTP control and data connection is the mechanism? A: Create a FTP control and data connection is established TCP connection process, you need three TCP packets (SYN, SYN / ACK, ACK). Close the FTP connection The process is the release of TCP connections, takes 4 TCP packet (FIN, ACK, FIN, ACK). 5. FTP commands and responses is the role? A: FTP client to the FTP server to send FTP commands, such as USER, PORT and so on. commands that FTP client requests an operation, such as USER sent to the server that the client user enters the user name. FTP server response to FTP to the client response, such as ;, each response is that the server of a state. such as Any e-2, display file information: DIR / LS 3, download the file: GET file name (downloaded to the current directory) 4, upload: PUT file name 5, multi-file download: MGET 6, multi-file upload: MPUT 7, exit: BYE 8, to help: HELP uses the local host and transfer files between remote hosts. Syntax ftp [-d] [-g] [-i] [-n] [-v] [-f] [-k realm] [-q [-C]] [HostName [Port]] describes the ftp command file transfer protocol FTP protocol allows the use of different file systems for data transfer between hosts. Although the data transfer protocol provides a high degree of flexibility, it still will not try to keep a file system-specific file attributes (such as file protection mode or modification time). Moreover, FTP protocol for the overall structure of the file system in a somewhat different assumptions, such as recycling and does not provide or do not allow this function to copy the subdirectories. Please note: If you are transferring files between systems, and the need to preserve file attributes or recursively copy subdirectories, use the rcp command. Subcommand
FTP installation interface
You can ftp> prompt, enter the sub-command to perform a task like this: remote directory listing, change the current local and remote directory, send multiple requests in a single files, create and remove directories, and escaping to the local shell execute shell commands. Please refer to sub-section to obtain the command description of each subcommand. If you run the ftp command instead of the specified HostName parameters for the remote host, ftp command immediately displays ftp> prompt, waiting for ftp subcommand. To connect to remote host, run the open subcommand. When the ftp command to connect to remote host, nike air force 1, ftp command prompt is displayed again ftp> prompt before the Council login name and password. If the remote host is not defined in the login password, ftp command is unsuccessful. ftp command interpreter (for the ftp> prompt, enter all the sub-command), will provide most of the file transfer program is not properties, such as: * the ftp command processing sub-file name argument * will be a focus as a sub-command single subcommand macro * from $ HOME / .netrc file into the macro these properties will help you streamline repetitive tasks, and allows you to use the ftp command in unattended mode. Command interpreter rules will be handled according to the following file name argument: * If this parameter is specified - (hyphen), the standard input (stdin) will be used for read operations, and standard output for write operations. * If you do not check the previous application, and the file name extension is enabled (see-g flag or the glob subcommand), the interpreter will be based on the rules of C shell extension. Replace the file name matching is enabled, and look forward to a single file name in the sub-command character used in pattern matching, the result may not look the same. For example, append and put subcommands will expand the file name, and then generated using only the first file name. Other ftp subcommands, such as cd, delete, get, mkdir, rename, and rmdir does not perform file name expansion and pattern matching characters literally accepted. * For the get, put, mget, and mput subcommands, the interpreter has the ability of different local and remote file-name syntax styles between the translation and mapping (refer to case, ntrans and nmap subcommands) and the local file name is not The only cases where the ability to amend it (see runique sub-command). In addition, if the remote file name is not unique, the ftp command to send commands to the remote ftpd server to modify the remote file name (see sunique subcommand). * Use double quotes (Please note: ftp command interpreter does not support the pipe. Need not support all multi-byte character file names. To the end, when run interactive ftp session, use the quit or bye subcommand or the ftp> prompt at the End of File (Ctrl-D) key sequence. File transfer to end it before the completion, press the interrupt key sequence. The default stty command can be used to redefine the key series. ftp command under normal circumstances, be suspended immediately being sent (from the local host to remote host) transmission. ftp command sent by FTP ABOR instruction to the remote FTP server, to suspend the transmission is received (from the remote host to local host), and discard all incoming file transfer packets (until the remote server to stop sending them so far.) If the remote server does not support the ABOR command, the remote server does not send all the requested documents before, ftp command does not display ftp> prompt. In addition, if the remote server to perform the operation is not expected, you may need to end the local ftp process. Security and Automatic Login if If you run the ftp command and specify the remote host's host name (HostName), ftp command attempts to establish a connection to the specified host. If a successful connection ftp command, ftp command in the current directory or search for local home directory $ HOME / .netrc file. If the file exists, ftp command will start the login process to search for the file entry, search for macro definitions in the command remote host. If the $ HOME / .netrc file or automatic login entry does not exist, or the system has been protected using securetcpip command, ftp command prompts the user to enter a user name and password. Regardless of whether the specified HostName command line parameters, the command will display this prompt. Please note: queuing system does not support multibyte host names. If the ftp command to find the specified host $ HOME / .netrc automatically log entries, ftp will attempt to use the login information in the log entry remote host. ftp command also loads any command defined in registry key macro. In some cases (for example, automatically log the required password entry is not listed), ftp command will display ftp> prompt before the password prompt. Once the ftp command to complete the automatic login, if the macro is defined automatically log items, ftp command executes the init macro. If the init macro does not exist or does not contain quit or bye subcommand, ftp command displays the ftp> prompt and waits for a subcommand. Please note: at the prompt or in $ HOME / .netrc remote host specified in the file name must exist, and have defined the remote host password. Otherwise, ftp command is invalid. If the Kerberos 5 authentication method is currently: ftp command by the text block in the IETF draft FTP security extensions will use the GSSAPI provides security and for the basic communication mechanism is independent of the service. GSSAPI is rfc 1508 and 1509 defined. ftp command will use the AUTH and ADAT command to verify the ftpd daemon. If both support Kerberos authentication, they will use local user authentication DCE credentials on the remote system users. If this fails, and both systems are equipped with HostName parameter is the destination host to send the file name. The optional Port parameter specifies the port identifier, is transmitted through this port. (/ Etc / services file specifies the default port.) Mark-C allows the user to specify: a document issued by send_file command must be high-speed buffer in the network (NBC) in the buffer after processing. This flag must be-q flag is specified circumstances. Only when the file in the case of unprotected sent in binary mode only for this flag. -D will be about ftp command operations of the debugging information sent to the syslogd daemon. If you specify the-d flag, you must edit / etc / syslog.conf file and add the following in one: OR user.debug FileName Please note: syslogd daemon debug level includes info level messages. If you do not edit the / etc / syslog.conf file, no message. Change the / etc / syslog.conf file, run the refresh-s syslogd or kill -1 SyslogdPID order to inform the syslogd daemon changes its configuration files. For more information about debug levels, refer to / etc / syslog.conf file. Please also refer to debug subcommand. -G Disable file name in the meta-character expansion. Explanation refer to the expansion of metacharacters (sometimes called the file name matched replacement) file name. See glob subcommand. -I turn off the interactive file transfer and more tips. Please refer to prompt, mget, mput and mdelete subcommand to get more tips in the file transfer description. -N to prevent the initial connection of the automatic logon. Otherwise, ftp command will search $ HOME / .netrc log entries, log entries describe the remote host's login and initialization process. Please refer to user sub-command. -Q allows the user to specify: send_file subroutine must be used to send the file on the network. Only when the file in the case of unprotected sent in binary mode only for this flag. -V displays all the remote server to respond, and provide data transfer statistics. When the ftp command output to the terminal (such as console or display), this display is the default mode. If stdin is not terminal, unless the user invoked the ftp with the-v flag command, or send verbose sub-command, or ftp mode will be disabled in detail. -F led to forward credentials. If the Kerberos 5 authentication method is not present, this flag will be ignored. -K realm If the domain is different from the remote station domain local system, the system will allow the user to specify a remote field station. Therefore, the domain and the DCE units are synonymous. If the Kerberos 5 authentication method is not present, this flag will be ignored. Sub-command (prompt) the following sub-commands ftp ftp> prompt. Use double quotes (! [Command [arguments]] called on the local host interactive shell. Shell commands can be provided by one or more optional parameters with an optional command. $> Macro [arguments] Run the specified macro (previously defined using the macdef subcommand). Parameters are not expanded. ? [Sub-command] Display help message descriptor command. If you do not specify the Subcommand parameter, ftp command displays a list of known subcommands. account [Password] to send the remote host to access its resources in the authorization may be required before additional password. If the password is not provided by the command will prompt the user for a password. Password is not displayed on the screen. append LocalFile [RemoteFile] to a local file to remote host file. If the remote file name is not specified, will use the local file name, the file name or the nmap subcommand by the ntrans generated sub-command to change any settings. When adding files, append sub-command will form, mode, struct, and type the command using the current value of the child. ascii type ascii subcommand synonyms. bell after each file transfer process is completed soon as the bell rang. binary type binary subcommand synonyms. block mode block subcommand synonyms. bye end of the file transfer session and exits ftp command. The same with the quit subcommand. carriage-control form carriage-control sub-command synonyms. case for the file name case to set a switch. When the case subcommand when the ftp command will open all the remote file name from uppercase to lowercase (to write them a local directory.) The default value is off (like ftp command in the local directory will be written in a format by uppercase uppercase remote file names.) cd RemoteDirectory the remote host in the working directory to the specified directory. cdup the remote host in the working directory to the parent directory of the current directory. close end of the file transfer session, but do not exit the ftp command. Defined macro has been erased. And disconnect sub-command. copylocal switch the local copy. copylocal default is off. ftp ftp through the implementation of the operation itself is not zero confirm your files (such as the same host name and the same path name.) Open to bypass this check will copylocal. cr in the ASCII file transfer type received during the record, from the carriage return and line-feed sequence to remove carriage return characters. (Ftp command file transfer during the suspension with a carriage return and line type of each ASCII record.) Remote host (the operating system and are running different operating systems) embedded in the record can have a single line records. Distinguish them from the record delimiter embedded line, please set the cr subcommand to Off. cr sub-command will switch between on and off. debug [0 | 1] in the debug record keeping to switch between on and off. Specify debug or debug 1, sent to the remote host to print each command and save the restart control file. Reassign debug or debug 0, to stop debugging record keeping. Ctrl-C key will save the restart control file. Specifies the debug sub-command ftp command operations on the debugging information to syslogd daemon. If you specify the debug subcommand, you must edit / etc / syslog.conf file and add one of the following: Please note: syslogd daemon debug level includes info level messages. If you do not edit the / etc / syslog.conf file, no message. Change the / etc / syslog.conf file, run the refresh-s syslogd or kill -1 SyslogdPID order to inform the syslogd daemon changes its configuration files. For more information about debug levels, refer to / etc / syslog.conf file. See also ftp-d flag. delete RemoteFile remove the specified remote file. dir [RemoteDirectory] [LocalFile] to the remote directory specified by the contents of the list (RemoteDirectory) write to the specified local file (LocalFile). If RemoteDirectory parameter is not specified, dir subcommand lists the contents of the current remote directory. If LocalFile parameter is not specified or a - (hyphen), the dir subcommand displays a list of the local terminal. disconnect end of the file transfer session, but does not exit ftp command. Defined macro has been erased. And close sub-command. ebcdic type ebcdic subcommand synonyms. exp_cmd in the conventional and experimental protocol command in the switch. The default is off. file struct file subcommand synonyms. form [carriage-control | non-print | telnet] Specifies the file transfer format. form sub-sub-type command to modify the command to send the file format by direct transfer. Effective parameters for carriage-control, non-print, and telnet. carriage-control format of the file transfer is set to carriage-control. non-print format of the file transfer is set to non-print. telnet file transfer format is set to Telnet. Telnet connection to the system is open Transmission Control Protocol / Internet Protocol (TCP / IP). get RemoteFile [LocalFile] remote file copy to the local host. If LocalFile parameter is not specified, the remote file name used locally by the case, ntrans and nmap subcommands to change any settings generated. ftp command to transfer files, it will use the type, form, mode, and struct subcommands current settings. glob switch mdelete, mget, and mput subcommands expand the file name (file name matches the replacement.) If the file name matched replacement disabled, these sub-commands of the file name argument will not be expanded. Replace the file name matching is enabled, and look forward to a single file name in the sub-command character used in pattern matching, the result may not look the same. For example, append and put subcommands will expand the file name, and then generated using only the first file name. Other ftp subcommands, such as cd, delete, get, mkdir, rename, and rmdir does not perform file name expansion and pattern matching characters literally accepted. mput subcommand replaces the file name matches the local executive, in a manner the same way as with the csh command. For mdelete and mget subcommands, each file name on the remote machine is to be extended, respectively, and the list will not be merged. According to the remote host and the ftp server, different directory name and file name of the expansion of the expansion may be different. To preview the expansion of the directory name, use the mls subcommand. mls RemoteFile transfer files to the directory sub-tree, do not use the mget or mput subcommand, while the binary format to send sub-tree tar archive. Switch hash hash sign (#) printing. When the hash subcommand is turned on when the ftp command data transmitted for each block (1024 bytes) shows a hash symbol. help [subcommand] Displays help information. See? Sub-command. image type image subcommand synonyms. lcd [Directory] change the working directory of the local host. If you do not specify a directory, ftp command will use the home directory. local M type local M sub-command synonyms. ls [RemoteDirectory] [LocalFile] set the remote directory abbreviated list of documents written to the local file. If RemoteDirectory parameter is not specified, ftp command lists the current remote directory. If LocalFile parameter is not specified or a - (hyphen), the ftp command displays a list of the local terminal. macdef Macro defined subcommand macro. Then the line until a blank line (two consecutive line breaks) to save the text as a macro. All macro definitions for up to 16 macros, containing 4096 characters. Redefine or close the sub-commands before execution, the macro should be maintained as defined macros. $ (Dollar sign) and (backslash) are special characters in ftp macros. Follow one or more digits of the $ sign will be called line replaced by the corresponding macro parameter (see $ subcommand). $ Symbol followed by the letter i after the loop that will be the macro, $ i character combination will be passed in each row of characters replaced. The first parameter for the first pass, the second parameter for the second pass, and so on. Symbol prevents special treatment of the next character. Use the symbol off $ and . (Backslash period) symbols of special significance. mdelete RemoteFiles RemoteFiles extended argument on the remote host specified by the file and delete the remote file. mdir [RemoteDirectories LocalFile] RemoteDirectories extended argument on the remote host specified directory, and write the contents of the directory list of parameters defined in the LocalFile file. If RemoteDirectories parameter contains pattern-matching characters, mdir sub-command will prompt for a local file (if not specified). If RemoteDirectories parameter is the remote directory with a space separated list, then list the last parameter must be a local file name or - (hyphen). If LocalFile argument is - (hyphen), mdir sub-command displays a list of the local terminal. If you are prompted to enable interactive (see sub-command prompt), ftp command will prompt the user to verify that the last parameter is a local file and not a remote directory. mget RemoteFiles Please expand on the remote host RemoteFiles parameters, and indicates the remote file copy to the local host's current directory. See glob subcommand for more information about file name extensions. Remote file name in local use by the case, ntrans and nmap subcommands to change the settings generated. When sending files, ftp command will use the form, mode, struct, and type subcommands current settings. mkdir [RemoteDirectory] created in the RemoteDirectory parameters (remote host) in the specified directory. mls [RemoteDirectories LocalFile] expand on the remote host specified in the argument in RemoteDirectories directory and remote directory indicated by the abbreviation list of documents written to local files. If RemoteDirectories parameter contains pattern-matching characters, mls subcommand prompts for a local file (if not specified). If RemoteDirectories parameter is the remote directory with a space separated list, then list the last parameter should be a local file name or - (hyphen). If LocalFile argument is - (hyphen), mls subcommand displays a list of the local terminal. If you are prompted to enable interactive (see sub-command prompt), ftp command will prompt the user to verify that the last parameter is a local file and not a remote directory. mode [stream | block] to set file transfer mode. If the parameter is not provided, the default value stream. Please block file transfer mode is set to block. stream the file transfer mode is set to stream. modtime display the remote machine in the specified file was last modified. If the ftp command is not connected to the host prior to execution, the modtime sub command terminated with error messages. ftp command ignores parameter beyond the first argument. If the FileName parameter is not specified, ftp command prompts for file name. If no file name is given, ftp command will use the message sent to standard output, air force 1 high, and terminate the sub-command. If the remote host has FileName parameter specifies the name, and specify the name of a file, the ftp command will contain the file was last modified time of the message is sent to standard output, and terminate the sub-command. If FileName specifies a directory, the ftp command will error message to standard output, and terminate the sub-command. Note: modtime subcommand will explain in the time allowed per character. mput [LocalFiles] expansion in the host LocalFiles parameters specified in the file and copy the local file instructions to the remote host. See glob subcommand for more information about file name extensions. Local file name to use in the remote host by ntrans and nmap subcommands to change the settings generated. ftp command will send files, use the type, form, mode, and struct subcommands current settings. nlist [RemoteDirectory] [LocalFile] to the remote directory specified by the contents of the list (RemoteDirectory) write to the specified local file (LocalFile). If RemoteDirectory parameter is not specified, nlist subcommand lists the contents of the current remote directory. If LocalFile parameter is not specified or a - (hyphen), the nlist subcommand displays a list of the local terminal. nmap open or close the file name mapping mechanism. If you do not specify any parameters, the filename mapping will be closed. If the parameter is specified in the target file name is not specified when, for mget and mput subcommands and get and put subcommands mapping source file name. This sub-command on the local and remote host using a different file naming conventions and practices is useful. Mapping the following parameters set by the InPattern and OutPattern mode. InPattern parameter is passed in the template file name is specified, the file name may have been set up under the case and ntrans processed. Can be from $ 1 to $ 9 into InPattern variable contains the template parameters. In addition to $ (dollar sign) and $ (backslash, dollar sign) outside, InPattern parameters of all the characters are treated literally, and as InPattern delimiter between variables. For example, if InPattern parameter is $ 1. $ 2 and the remote file name is mydata.dat, then the value of $ 1 mydata, air force one high, $ 2 value is dat. This OutPattern parameter determines the outcome document of the name. From $ 1 to $ 9 variable parameters by their values obtained from the InPattern replaced, and the variable $ 0 will replace the original file name. In addition, if Sequence1 is not empty, sequence [Sequence1, Sequence2] will be replaced Sequence1; or it will Replace the Sequence2 value. For example, the sub-command: nmap $ 1. $ 2. $ 3 [$ 1, $ 2]. [$ 2, file] would be generated from the myfile.data or myfile.data.old myfile.data, arising from myfile myfile.file, from. Myfile produced myfile.myfile. Use the (backslash) symbol to prevent OutPattern parameter $ (dollar sign), [(left bracket),] (right bracket) and, (comma) the special significance. non-print form non-print sub-command synonyms. ntrans] open or close the file name character translation mechanism. If you do not specify any parameters, the character translation is turned off. If the parameter is specified in the target file name is not specified when the child will mget and mput commands and sub-commands get and put in the translation of the source file name characters. This sub-command on the local and remote host using a different file name conventions and practices is useful. Compliance InCharacters and OutCharacters character translation model parameters. Match InCharacters parameters of the characters in the source file name parameter in the corresponding characters will be OutCharacters character replacement. If InCharacters parameter specifies the string parameter specifies the string than OutCharacters long, and its parameters in the OutCharacters no corresponding characters, InCharacters of characters in a will be deleted. open HostName [Port] specified by the HostName parameter host establish FTP server. If the optional port number specified ftp command will try to connect the port of the server. If you have set up automatic logon feature (ie, air force one low, the-n flag is not specified on the command line), the ftp command will attempt to allow users to log on to the FTP server. You must also have one with the correct information, $ HOME / .netrc file and set the correct permission. . Netrc file should be in your home directory. passive passive file transfer mode switch. In the case of passive mode off calls file transfer command (such as get, mget, and put, or mput) when, ftp server, the client opens the data connection. In passive mode, the client sends and receives data in time to open a data connection to the host. set the protection level is set to private At this level, both the full protection of data but confidential. toggle interactive prompt tips. If the interactive prompt is enabled (default value) ftp command to retrieve, send or delete files (in the mget, mput, and mdelete) will prompt for authentication before the operation. Otherwise, ftp command in accordance with all specified files to execute. This command will return to protect the current level of protection. proxy [Subcommand] executed in the secondary control connection ftp command. This sub-sub-command ftp command allows simultaneous connection of two remote FTP servers to transfer files between two servers. The first proxy subcommand should be to establish a secondary control connection to open sub-command. Please enter a proxy? Sub command to see the other connections in the secondary sub-command ftp executable. The following sub-commands by proxy when the sub-command at the beginning of the performance will be different: * open sub-command in the automatic logon process does not define new macros. * Close subcommand does not erase existing macro definitions. * Get and mget subcommands host connection from the main document will be sent to the two connected hosts. * Put, mput, and append sub-command to the host connection from the second file transfer will be connected to the main host. * Restart subcommand can be proxy command for processing. * Status subcommand to display accurate information. File transfer requirements of the second connection of the FTP server must support the PASV (passive) command. put LocalFile [RemoteFile] to a local file storage to a remote host. If you do not specify RemoteFile parameters, ftp command will use the local file name remote file name, and remote file name from the ntrans and nmap subcommands to change the settings generated. ftp command will send files, will use the type, form, mode, and struct subcommands current settings. pwd Display remote host in the current directory name. quit close the connection and exit the ftp command. The same with the bye subcommand. quote verbatim string String parameter specifies the string to be sent to the remote host. Executive remotehelp or quote help subcommand to display valid values for String parameter list. Note: The data transfer involved record struct record subcommand synonyms. recv RemoteFile [LocalFile] Please copy the remote file to the local host. And get sub-command. reinitialize by refreshing all the I / O and allow to complete the transfer operation of the FTP session is re-initialized. FTP session is started by the user logged into the remote host, but the case reset all the default values. remotehelp [Subcommand] request for help from the remote FTP server. rename FromName ToName rename a file on the remote host. reset Clear reply queue. Analysis of this sub-command will allow the command to re-sync. restart get | put | append a check in the build location of the point on the restart file transfer. To run smoothly, with the exception of the sub-command should be the same as the command terminator, including structure, type and format. Effective parameters for the get, put and append. rmdir RemoteDirectory removed from the remote host in RemoteDirectory parameter remote directory specified. runique (ReceiveUnique) get and mget commands in the sub-period, the switch to a local destination file to create a unique file name functions. If this function is Otherwise, if the local file name for the local destination file with the same name as specified, ftp will use the .1 to modify the local destination file name specified. If the local file is to use a new name, ftp will add the suffix .2 to the specified name. If the local file is to use this second name, the ftp command will find only the file name or file name to find the only continue to increase until it reaches .99 suffix. If the ftp command can not find a unique file name, ftp will report an error does not occur during transmission. Please note runique subcommand does not affect the production from the shell command of the local file name. safe will protect level is set to At this level, data integrity will be protected. send LocalFile [RemoteFile] to a local file storage to a remote host. The sub-command put the same way. sendport switch for use FTP PORT command. By default, ftp command to establish a connection for each data transfer will be used when the PORT command. When the PORT command is disabled, ftp will not use the PORT command data transmission. In dealing with some of the FTP PORT command is useful when the server, the server is not properly instructed that instruction has been accepted will ignore PORT commands. site Args show or set using the chmod command to idle time-out period, displays or sets the file creation umask, or change the file permissions. Args parameter are umask and the possible value of chmod. size RemoteFile displayed in bytes RemoteFile parameters specified by the remote file size. status shows the current status of ftp commands and sub-command status. stream mode stream subcommand synonyms. struct [file | record] set the data transfer structure type. Effective parameters for the file and record. file structure of the data transfer type is set to file. record the data transfer structure type to record. sunique (Send / Store Unique) put and mput commands in the sub-period, the switch to the remote destination file to create a unique file name of the function. If this function is Otherwise, if the remote file name is specified for the remote destination file the same name, the remote FTP server modifies the name of the remote destination file. Please note that the remote server must support the STOU instruction. The system displays on remote machines running the operating system type. telnet form telnet subcommand synonyms. tenex type tenex synonymous sub-command. Tracking switch package tracking. type [ascii | binary | ebcdic | image | local M | tenex] set file transfer type. Effective parameters are ascii, nike air force 1 high, binary, ebcdic, image,, local M and tenex. If the parameter is not specified, the current type is displayed. The default type is ascii; binary type may be more efficient than ascii. ascii file transfer type to network ASCII. This type is the default. File transfer using the binary image transfer may be more effective. Please refer to binary parameters to obtain more information. binary file transfer type to binary image. This type of transmission may be more effective than ASCII. ebcdic the file transfer type to EBCDIC. image the file transfer type to binary image. This type of transmission may be more effective than ASCII. local M will file transfer type is set to local. Each computer word M parameter defines the number of decimal places. This parameter has no default value. tenex the file transfer type to TENEX machines need to type. user User [Password] [Account] identify the remote FTP server's local user (User). If the Password or Account parameter is not specified, the remote server requires it, the ftp command prompts for the local password and account. If the Account parameter is required, the ftp command in the remote login process is complete, it will be sent to the remote server. Note: Unless specified on the command line-n flag to disable automatic login, or ftp commands to User, Password and Account parameters automatically sent to the remote server used for the initial connection. You also need the main directory. Netrc file to publish automatically log on. more verbose way switch. If you enable verbose mode (the default), ftp command displays all of the remote FTP server response. In addition, ftp transfer will show all file transfer is complete statistical information. Example 1. To call the ftp command, log on the system canopus, display local help information, display remote help information, display status, switch bell, prompt, runique, trace, and verbose subcommands, and then quit, enter: $ ftp canopus name (canopus: eric): dee 331 dee password required. Password: 230 User dee logged. ftp> help Commands may be abbreviated. Command:! Delete mdelete proxy runique $ debug mdir sendport send account dir mget put size append disconnect mkdir pwd status ascii form mls quit struct bell get mode quote sunique binary glob modtime recv system bye hash mput remotehelp tenex case help nmap rstatus trace cd image nlist rhelp type cdup lcd ntrans rename user close ls open reset verbose cr macdef prompt rmdir? clear private protect safe ftp> remotehelp 214 - recognizes the following command (* => not implemented.) USER PORT RETR MSND * ALLO DELE SITE * XMKD CDUP PASS PASV STOR MSOM * REST * CWD STAT * RMD XCUP ACCT * TYPE APPE MSAM * RNFR XCWD HELP XRMD STOU REIN * STRU MLFL * MRSQ * RNTO LIST NOOP PWD QUIT MODE MAIL * MRCP * ABOR NLST MKD XPWD AUTH ADAT PROT PBSZ MIC ENC CCC No proxy connection. Mode: stream; Type: ascii; form: non-print; structure: File Details: Open; Bell: Off; Tip: open; the file name matched replacement: the only open store: Off; receiving unique: off Case: Off ; CR stripping: Open Ntrans: Off Nmap: off Hash mark printing: off; PORT cmds to use: on ftp> bell Bell to open the ftp> prompt Interactive mode off. ftp> runique the only open receiver. ftp> trace Packet tracing on. ftp> verbose verbose mode off. ftp> quit $ 2. to call the ftp command, log on the system canopus, print the working directory, change the working directory, the file transfer type is set to ASCII to send local files to a remote host, the working directory to the parent directory, and then exit, Please enter: $ ftp canopus Name (canopus: eric): dee 331 dee password required. Password: 230 User dee login. ftp> pwd 257 ftp> cd Desktop 250 CWD command successful. ftp> type ascii 200 Type set to A. ftp> send a typescript 200 PORT command successful. 150 for the typescript (128.114.4.99,1412) open data connection. 226 Transfer complete. ftp> cdup 250 CWD command successful. ftp> bye 221 Goodbye. $ 3. To call the function with automatic login ftp command (using the. Netrc files), open the session with the system canopus, log in, the working directory to the parent directory, display the working directory, list the current contents of the directory, delete files, list the current contents of the directory to write the local file, close the session, and then quit, enter: $ ftp canopus 331 dee password required. 230 User dee login. ftp> cdup 250 CWD command successful. ftp> pwd 257 ftp> dir 200 PORT command successful. 150 is / usr / bin / ls (128.114.4.99,1407) open data connection. (0 bytes). Total 104 drwxr-xr-x 2 system 32 Feb 23 17:55 bin Drwxr-xr-x 26 rios 4000 May 30 17:18 bin1 drwxr-xr-x 2 system 32 Feb 23 17:55 books drwxrwxrwx 18 rios 1152 Jun 5
|
|
|
08-29-2011, 05:46 AM
|
#3
|
Commander In Chief
Join Date: Sep 2010
Posts: 588
|
FTP is a File Transfer Protocol (file transfer protocol) the title, while the Chinese referred to as Control file on the Internet for two-way transmission. At the same time, it is an application (Application). Users can use it to your PC, all running around the world connected to the server FTP protocol to access a large number of server processes and information. The main function of FTP is to allow users to connect to a remote computer (the computer running the FTP server program) which look at the remote computer files, then copying the file from a remote computer on the local computer, or sent to the local computer's file to the remote computer.
directory
Work example anonymous ftp transfer protocol server system user account Category Real Guest user Anonymous (anonymous) users to transmit details of the transfer mode starts work FAQ About command parameter descriptor command uses the syntax sub-command (prompt) Example protect enterprise security best practices FTP program profiles Funds Transfer Pricing: Transfer pricing of funds works to download the example files, for example, when you start the FTP to copy files from a remote computer when you actually start two procedures: a local FTP client on the machine, which copy files to the FTP server make the request. Another is to start on the remote computer's FTP server program, which responds to your request to transfer the files you specify to your computer. FTP using FTP client interface and the graphical interface has two characters. Character FTP command interface complexity, variety. Graphical FTP client, the operation simple and convenient to many. Transfer Protocol simply, server support FTP protocol is FTP server, the following explanation of what FTP protocol. (File Transfer Protocol) In general, the use of the Internet's primary purpose is information sharing, file transfer, information sharing is a very important content. Internet to transfer files on the early implementation is not an easy thing to do, nike air force one low, we know that Internet is a very complex computer environment, PC, a workstation, a MAC, a mainframe, and a computer connected to the Internet, there are tens of millions of units and these computers may run different operating systems, Unix servers are running, but also to run Dos, Windows for PC machines and Macs running MacOS, etc., and all kinds of files between the operating system communication problems, the need for a unified File Transfer Protocol, which is called FTP. Based on different operating systems have different FTP applications, all of which applications are to comply with a protocol, so users can transfer your files to others or the environment from other users to access a file. Server system, like with most Internet services, FTP is a client / server systems. The user through a protocol to support FTP client program to connect to the remote host FTP server program. The user through a client program to the server program issued a command, the server program executes the commands issued by the user and returns the results of the implementation to the client. For example, the user issues a command, ask the server to the user to send a copy of a file, the server will respond to this command, the specified documents to the user's machine. Client program on behalf of the user receives this file, be stored in the user directory. Use them in the FTP, users often encounter two concepts: Used Internet language, users can program to the client (from) the remote host upload (downloading) files. When using FTP you must first log on the remote host to obtain the appropriate permissions, you only download or upload files. In other words, in order to transfer files with which computer to which computer must have the proper authorization. In other words, unless a user ID and password, otherwise it can not send files. That it violates the open Internet, Internet far more than a million on the FTP host, can not require each user to have each host account. Anonymous FTP is to solve the problems that arise. Anonymous FTP is a mechanism, through which users can connect to a remote host, and its download files without having to become registered users. The system administrator to create a special user ID, name anonymous, Internet on any person in any place can use the user ID. Anonymous FTP FTP program to connect through the host's way of connecting with the way ordinary FTP host, only in user ID in the request ID must be entered when the anonymous, the user ID's password can be any string. Traditionally, with their E-mail address as the password, the system maintenance program can record who is accessing these files. It is noteworthy that, anonymous FTP does not apply to all Internet hosts, it only applies to those providing the service host. When the remote host to provide anonymous FTP service, you specify certain directories to the public, to allow anonymous access. The rest of the system directory is in a hidden state. As a security measure, most of the anonymous FTP from the host allow users to download files, and does not allow users to upload files to him, that is, anonymous FTP users can host all the copies of all documents to your machine , but can not own any of the files on the machine copy to anonymous FTP host. Even if some anonymous FTP host does allow users to upload files, the user can only upload files to a specified upload directory. Subsequently, the system administrator to check the files, he would download these files to another directory in the public for other users to download, use this way, the remote host users have been protected to avoid some problems uploading documents, such as files with the virus. As an Internet user, via FTP in any copy files between two Internet hosts. But, in fact, most people have only one Internet account, FTP is mainly used to download public documents, such as sharing software, the technical support documents. There are thousands of anonymous Internet FTP host, the hosts kept the numerous documents for a free copy of the user. In fact, almost all types of information, all types of computer programs can be found on the Internet. This is the Internet to attract our important reasons. Anonymous ftp Anonymous FTP enables users to have the opportunity to access to the world's largest repository of information, the information base is up over time, and still growing, and never closed, involving almost all topics. And, all this is free. Internet Anonymous FTP is a common method of online publishing software. Internet has been able to continue to this day, because people use the standard services provided by standard protocol procedures. Program like this, there are many that is released via anonymous FTP, anyone can access them. There are a huge number of Internet in the anonymous FTP host, and more files, then in the end how can we know what a particular file is located in the anonymous FTP directory on the host it? This is the Archie server to complete the work. Archie will automatically search in the FTP host, file directory structure that contains all the information database, so you can find the file location information. Real user classification refers to accounts of these users have an account on the FTP service. When such users log on when the FTP server, the default home directory is a directory of its account name. However, it also can change to another directory. Such as the system's home directory and so on. Guest user FTP server, we tend to give a different department or a specific user set up an account. However, this account has a feature, is its only access to your home directory. Server through FTP service in this way to protect the security of other documents. Such accounts, in Vsftpd software called Guest users. Possession of such user's account can only access their home directory under the directory, but not access files outside the home directory. Anonymous (anonymous) users that is what we usually refer to anonymous access. Such user is not specified in the FTP server account, but it can still be anonymous access to certain public resources. FTP server in the formation of the time, we need the type of the user, the user classification. By default, Vsftpd server will create all the accounts are assigned to Real users. However, this often does not meet the enterprise security needs. Because these users can not only access their home directory, and that other users can access the directory. This is where the space to other users has brought a security risk. Therefore, enterprises should the actual situation, to modify the categories the user is. [1] start remote file transfer method requires the computer must be installed and run ftp client. In the windows during the installation of the operating system, usually installed tcp / ip protocol software, which will contain the ftp client. But the program is a graphical interface instead of the character interface, which must operate the way the command prompt, very convenient. Start the ftp client to work another way is to use the ie browser, the user need only input the address bar in ie's url address the following format: ftp:// [username: password @] ftp server name: [port number] ( In the CMD command line using the above method can also be connected, through the put command and the command to get the purpose of uploading and downloading through the ls command to list the directory, in addition to the above methods but can also enter the ftp cmd enter, then enter the open IP to establish a connection, this method also applies to connection under linux ftp server), ie a browser start by way Although you can use ftp, but slower, but also expose the password in the browser ie without security. So generally installed and running special ftp client. 1. On the local computer, log on to the Internet. 2. Search for a file sharing host or personal computer (usually a dedicated FTP server published on the website, above or personal computer to enter the host name, password, and path). 3 . When the remote host or each other's personal computer connection is established, with each other to provide the user name and password to log in to the host or each other's personal computers. 4. in the remote host PC or other successful landing, you can upload your want to share something or download something other authorized share (where things are those that go into computers and can see things on the screen). 5. to complete its work and close FTP download software, cutting off connections. In order to achieve file transfer, the user must run a special file transfer program such as Flashget have this function, there are many other specialized FTP transfer software, FlashFxp as one of the outstanding software. Interested users can try other software, such as LeapFTP is always different in style. Transfer details TCP / IP protocol, FTP standard commands for the TCP port number 21, Port way data port is 20. FTP task is a file from one computer to another computer, without operating system constraints. FTP transfer mode transmission in two ways: ASCII, binary. ASCII transfer method assumes that the user is a simple copy of the file contains ASCII code text, if the remote machine is not running on UNIX, typically when the file transfer ftp files will be automatically adjusted so that the paper explains the contents into another computer store that text file format. But often this is the case, the user is the file transfer is not included in text files, they may be procedures, databases, word processing files or compressed files. In the copy before any non-text files, using ftp binary command tells verbatim copy. Binary transfer mode in the binary transmission, the bit sequence to save the file to the original and the copy is bit-by-one correspondence. Even if the destination machine, the file contains the bit sequence is meaningless. For example, macintosh transmitted in binary executable file to the Windows system, other systems, this file can not be executed. As in ASCII mode to transfer binary files, even if not still translated. This will damage the data. (ASCII mode is generally assumed the first significant bit of each character is meaningless, because the combination of ASCII characters do not use it. If you transfer a binary file, all the bits are important.) Work FTP supports two modes: Standard (PORT mode , active mode), Passive (PASV, passive mode). Port mode FTP client and server first establish a connection to TCP 21 port used to send the command, the client needs to receive data channel, when sending in the PORT command. PORT command contains the client what port to receive data. When sending data, server-side through the TCP 20 port to connect your client to send data to the specified port. FTP server and the client must establish a new connection to transfer data. Passive mode and Standard mode control channel to establish a similar, but the connection is established to send Pasv command. Server receives Pasv command, open a temporary port (port number greater than 1023 less than 65535) and notify the client in this port to send data requests, FTP server, the client connection port, and then FTP server will send through this port data. Many firewall settings are not allowed to accept outside when the connection was launched, many located within the network firewall or FTP server does not support PASV mode, because the client can not open the FTP server through the firewall, the high end of the port; and many within the network client can not login with FTP server PORT mode, because the server's TCP 20 and the internal network can not create a new client connection, resulting not work. FAQ 1. FTP What is it? (See FTP simulation [2]) A: FTP is the abbreviation for File Transfer Protocol, the file transfer protocol for transferring files over the Internet, FTP file transfers usually refers to the application, divided into FTP client and FTP server program. 2. FTP do? A: FTP FTP client can connect to the FTP server, download files from FTP server to FTP client, or FTP client to upload files to FTP server. 3. FTP requires two TCP connections why? A: Client control connection with the transfer command, the server used to direct response answer. data connection is used to transfer files. FTP uses two connections to the command and data in the form of independent development, without disturbing each other. 4. Establish / close FTP control and data connection is the mechanism? A: Create a FTP control and data connection is established TCP connection process, you need three TCP packets (SYN, SYN / ACK, ACK). Close the FTP connection The process is the release of TCP connections, takes 4 TCP packet (FIN, ACK, FIN, ACK). 5. FTP commands and responses is the role? A: FTP client to the FTP server to send FTP commands, such as USER, PORT and so on. commands that FTP client requests an operation, such as USER sent to the server that the client user enters the user name. FTP server response to FTP to the client response, such as ;, each response is that the server of a state. such as Any e-2, display file information: DIR / LS 3, download the file: GET file name (downloaded to the current directory) 4, upload: PUT file name 5, multi-file download: MGET 6, multi-file upload: MPUT 7, exit: BYE 8, to help: HELP uses the local host and transfer files between remote hosts. Syntax ftp [-d] [-g] [-i] [-n] [-v] [-f] [-k realm] [-q [-C]] [HostName [Port]] describes the ftp command file transfer protocol FTP protocol allows the use of different file systems for data transfer between hosts. Although the data transfer protocol provides a high degree of flexibility, it still will not try to keep a file system-specific file attributes (such as file protection mode or modification time). Moreover, FTP protocol for the overall structure of the file system in a somewhat different assumptions, such as recycling and does not provide or do not allow this function to copy the subdirectories. Please note: If you are transferring files between systems, and the need to preserve file attributes or recursively copy subdirectories, use the rcp command. Subcommand
FTP installation interface
You can ftp> prompt, enter the sub-command to perform a task like this: remote directory listing, change the current local and remote directory, send multiple requests in a single files, create and remove directories, and escaping to the local shell execute shell commands. Please refer to sub-section to obtain the command description of each subcommand. If you run the ftp command instead of the specified HostName parameters for the remote host, ftp command immediately displays ftp> prompt, waiting for ftp subcommand. To connect to remote host, run the open subcommand. When the ftp command to connect to remote host, nike air force 1, ftp command prompt is displayed again ftp> prompt before the Council login name and password. If the remote host is not defined in the login password, ftp command is unsuccessful. ftp command interpreter (for the ftp> prompt, enter all the sub-command), will provide most of the file transfer program is not properties, such as: * the ftp command processing sub-file name argument * will be a focus as a sub-command single subcommand macro * from $ HOME / .netrc file into the macro these properties will help you streamline repetitive tasks, and allows you to use the ftp command in unattended mode. Command interpreter rules will be handled according to the following file name argument: * If this parameter is specified - (hyphen), the standard input (stdin) will be used for read operations, and standard output for write operations. * If you do not check the previous application, and the file name extension is enabled (see-g flag or the glob subcommand), the interpreter will be based on the rules of C shell extension. Replace the file name matching is enabled, and look forward to a single file name in the sub-command character used in pattern matching, the result may not look the same. For example, append and put subcommands will expand the file name, and then generated using only the first file name. Other ftp subcommands, such as cd, delete, get, mkdir, rename, and rmdir does not perform file name expansion and pattern matching characters literally accepted. * For the get, put, mget, and mput subcommands, the interpreter has the ability of different local and remote file-name syntax styles between the translation and mapping (refer to case, ntrans and nmap subcommands) and the local file name is not The only cases where the ability to amend it (see runique sub-command). In addition, if the remote file name is not unique, the ftp command to send commands to the remote ftpd server to modify the remote file name (see sunique subcommand). * Use double quotes (Please note: ftp command interpreter does not support the pipe. Need not support all multi-byte character file names. To the end, when run interactive ftp session, use the quit or bye subcommand or the ftp> prompt at the End of File (Ctrl-D) key sequence. File transfer to end it before the completion, press the interrupt key sequence. The default stty command can be used to redefine the key series. ftp command under normal circumstances, be suspended immediately being sent (from the local host to remote host) transmission. ftp command sent by FTP ABOR instruction to the remote FTP server, to suspend the transmission is received (from the remote host to local host), and discard all incoming file transfer packets (until the remote server to stop sending them so far.) If the remote server does not support the ABOR command, the remote server does not send all the requested documents before, ftp command does not display ftp> prompt. In addition, if the remote server to perform the operation is not expected, you may need to end the local ftp process. Security and Automatic Login if If you run the ftp command and specify the remote host's host name (HostName), ftp command attempts to establish a connection to the specified host. If a successful connection ftp command, ftp command in the current directory or search for local home directory $ HOME / .netrc file. If the file exists, ftp command will start the login process to search for the file entry, search for macro definitions in the command remote host. If the $ HOME / .netrc file or automatic login entry does not exist, or the system has been protected using securetcpip command, ftp command prompts the user to enter a user name and password. Regardless of whether the specified HostName command line parameters, the command will display this prompt. Please note: queuing system does not support multibyte host names. If the ftp command to find the specified host $ HOME / .netrc automatically log entries, ftp will attempt to use the login information in the log entry remote host. ftp command also loads any command defined in registry key macro. In some cases (for example, automatically log the required password entry is not listed), ftp command will display ftp> prompt before the password prompt. Once the ftp command to complete the automatic login, if the macro is defined automatically log items, ftp command executes the init macro. If the init macro does not exist or does not contain quit or bye subcommand, ftp command displays the ftp> prompt and waits for a subcommand. Please note: at the prompt or in $ HOME / .netrc remote host specified in the file name must exist, and have defined the remote host password. Otherwise, ftp command is invalid. If the Kerberos 5 authentication method is currently: ftp command by the text block in the IETF draft FTP security extensions will use the GSSAPI provides security and for the basic communication mechanism is independent of the service. GSSAPI is rfc 1508 and 1509 defined. ftp command will use the AUTH and ADAT command to verify the ftpd daemon. If both support Kerberos authentication, they will use local user authentication DCE credentials on the remote system users. If this fails, and both systems are equipped with HostName parameter is the destination host to send the file name. The optional Port parameter specifies the port identifier, is transmitted through this port. (/ Etc / services file specifies the default port.) Mark-C allows the user to specify: a document issued by send_file command must be high-speed buffer in the network (NBC) in the buffer after processing. This flag must be-q flag is specified circumstances. Only when the file in the case of unprotected sent in binary mode only for this flag. -D will be about ftp command operations of the debugging information sent to the syslogd daemon. If you specify the-d flag, you must edit / etc / syslog.conf file and add the following in one: OR user.debug FileName Please note: syslogd daemon debug level includes info level messages. If you do not edit the / etc / syslog.conf file, no message. Change the / etc / syslog.conf file, run the refresh-s syslogd or kill -1 SyslogdPID order to inform the syslogd daemon changes its configuration files. For more information about debug levels, refer to / etc / syslog.conf file. Please also refer to debug subcommand. -G Disable file name in the meta-character expansion. Explanation refer to the expansion of metacharacters (sometimes called the file name matched replacement) file name. See glob subcommand. -I turn off the interactive file transfer and more tips. Please refer to prompt, mget, mput and mdelete subcommand to get more tips in the file transfer description. -N to prevent the initial connection of the automatic logon. Otherwise, ftp command will search $ HOME / .netrc log entries, log entries describe the remote host's login and initialization process. Please refer to user sub-command. -Q allows the user to specify: send_file subroutine must be used to send the file on the network. Only when the file in the case of unprotected sent in binary mode only for this flag. -V displays all the remote server to respond, and provide data transfer statistics. When the ftp command output to the terminal (such as console or display), this display is the default mode. If stdin is not terminal, unless the user invoked the ftp with the-v flag command, or send verbose sub-command, or ftp mode will be disabled in detail. -F led to forward credentials. If the Kerberos 5 authentication method is not present, this flag will be ignored. -K realm If the domain is different from the remote station domain local system, the system will allow the user to specify a remote field station. Therefore, the domain and the DCE units are synonymous. If the Kerberos 5 authentication method is not present, this flag will be ignored. Sub-command (prompt) the following sub-commands ftp ftp> prompt. Use double quotes (! [Command [arguments]] called on the local host interactive shell. Shell commands can be provided by one or more optional parameters with an optional command. $> Macro [arguments] Run the specified macro (previously defined using the macdef subcommand). Parameters are not expanded. ? [Sub-command] Display help message descriptor command. If you do not specify the Subcommand parameter, ftp command displays a list of known subcommands. account [Password] to send the remote host to access its resources in the authorization may be required before additional password. If the password is not provided by the command will prompt the user for a password. Password is not displayed on the screen. append LocalFile [RemoteFile] to a local file to remote host file. If the remote file name is not specified, will use the local file name, the file name or the nmap subcommand by the ntrans generated sub-command to change any settings. When adding files, append sub-command will form, mode, struct, and type the command using the current value of the child. ascii type ascii subcommand synonyms. bell after each file transfer process is completed soon as the bell rang. binary type binary subcommand synonyms. block mode block subcommand synonyms. bye end of the file transfer session and exits ftp command. The same with the quit subcommand. carriage-control form carriage-control sub-command synonyms. case for the file name case to set a switch. When the case subcommand when the ftp command will open all the remote file name from uppercase to lowercase (to write them a local directory.) The default value is off (like ftp command in the local directory will be written in a format by uppercase uppercase remote file names.) cd RemoteDirectory the remote host in the working directory to the specified directory. cdup the remote host in the working directory to the parent directory of the current directory. close end of the file transfer session, but do not exit the ftp command. Defined macro has been erased. And disconnect sub-command. copylocal switch the local copy. copylocal default is off. ftp ftp through the implementation of the operation itself is not zero confirm your files (such as the same host name and the same path name.) Open to bypass this check will copylocal. cr in the ASCII file transfer type received during the record, from the carriage return and line-feed sequence to remove carriage return characters. (Ftp command file transfer during the suspension with a carriage return and line type of each ASCII record.) Remote host (the operating system and are running different operating systems) embedded in the record can have a single line records. Distinguish them from the record delimiter embedded line, please set the cr subcommand to Off. cr sub-command will switch between on and off. debug [0 | 1] in the debug record keeping to switch between on and off. Specify debug or debug 1, sent to the remote host to print each command and save the restart control file. Reassign debug or debug 0, to stop debugging record keeping. Ctrl-C key will save the restart control file. Specifies the debug sub-command ftp command operations on the debugging information to syslogd daemon. If you specify the debug subcommand, you must edit / etc / syslog.conf file and add one of the following: Please note: syslogd daemon debug level includes info level messages. If you do not edit the / etc / syslog.conf file, no message. Change the / etc / syslog.conf file, run the refresh-s syslogd or kill -1 SyslogdPID order to inform the syslogd daemon changes its configuration files. For more information about debug levels, refer to / etc / syslog.conf file. See also ftp-d flag. delete RemoteFile remove the specified remote file. dir [RemoteDirectory] [LocalFile] to the remote directory specified by the contents of the list (RemoteDirectory) write to the specified local file (LocalFile). If RemoteDirectory parameter is not specified, dir subcommand lists the contents of the current remote directory. If LocalFile parameter is not specified or a - (hyphen), the dir subcommand displays a list of the local terminal. disconnect end of the file transfer session, but does not exit ftp command. Defined macro has been erased. And close sub-command. ebcdic type ebcdic subcommand synonyms. exp_cmd in the conventional and experimental protocol command in the switch. The default is off. file struct file subcommand synonyms. form [carriage-control | non-print | telnet] Specifies the file transfer format. form sub-sub-type command to modify the command to send the file format by direct transfer. Effective parameters for carriage-control, non-print, and telnet. carriage-control format of the file transfer is set to carriage-control. non-print format of the file transfer is set to non-print. telnet file transfer format is set to Telnet. Telnet connection to the system is open Transmission Control Protocol / Internet Protocol (TCP / IP). get RemoteFile [LocalFile] remote file copy to the local host. If LocalFile parameter is not specified, the remote file name used locally by the case, ntrans and nmap subcommands to change any settings generated. ftp command to transfer files, it will use the type, form, mode, and struct subcommands current settings. glob switch mdelete, mget, and mput subcommands expand the file name (file name matches the replacement.) If the file name matched replacement disabled, these sub-commands of the file name argument will not be expanded. Replace the file name matching is enabled, and look forward to a single file name in the sub-command character used in pattern matching, the result may not look the same. For example, append and put subcommands will expand the file name, and then generated using only the first file name. Other ftp subcommands, such as cd, delete, get, mkdir, rename, and rmdir does not perform file name expansion and pattern matching characters literally accepted. mput subcommand replaces the file name matches the local executive, in a manner the same way as with the csh command. For mdelete and mget subcommands, each file name on the remote machine is to be extended, respectively, and the list will not be merged. According to the remote host and the ftp server, different directory name and file name of the expansion of the expansion may be different. To preview the expansion of the directory name, use the mls subcommand. mls RemoteFile transfer files to the directory sub-tree, do not use the mget or mput subcommand, while the binary format to send sub-tree tar archive. Switch hash hash sign (#) printing. When the hash subcommand is turned on when the ftp command data transmitted for each block (1024 bytes) shows a hash symbol. help [subcommand] Displays help information. See? Sub-command. image type image subcommand synonyms. lcd [Directory] change the working directory of the local host. If you do not specify a directory, ftp command will use the home directory. local M type local M sub-command synonyms. ls [RemoteDirectory] [LocalFile] set the remote directory abbreviated list of documents written to the local file. If RemoteDirectory parameter is not specified, ftp command lists the current remote directory. If LocalFile parameter is not specified or a - (hyphen), the ftp command displays a list of the local terminal. macdef Macro defined subcommand macro. Then the line until a blank line (two consecutive line breaks) to save the text as a macro. All macro definitions for up to 16 macros, containing 4096 characters. Redefine or close the sub-commands before execution, the macro should be maintained as defined macros. $ (Dollar sign) and (backslash) are special characters in ftp macros. Follow one or more digits of the $ sign will be called line replaced by the corresponding macro parameter (see $ subcommand). $ Symbol followed by the letter i after the loop that will be the macro, $ i character combination will be passed in each row of characters replaced. The first parameter for the first pass, the second parameter for the second pass, and so on. Symbol prevents special treatment of the next character. Use the symbol off $ and . (Backslash period) symbols of special significance. mdelete RemoteFiles RemoteFiles extended argument on the remote host specified by the file and delete the remote file. mdir [RemoteDirectories LocalFile] RemoteDirectories extended argument on the remote host specified directory, and write the contents of the directory list of parameters defined in the LocalFile file. If RemoteDirectories parameter contains pattern-matching characters, mdir sub-command will prompt for a local file (if not specified). If RemoteDirectories parameter is the remote directory with a space separated list, then list the last parameter must be a local file name or - (hyphen). If LocalFile argument is - (hyphen), mdir sub-command displays a list of the local terminal. If you are prompted to enable interactive (see sub-command prompt), ftp command will prompt the user to verify that the last parameter is a local file and not a remote directory. mget RemoteFiles Please expand on the remote host RemoteFiles parameters, and indicates the remote file copy to the local host's current directory. See glob subcommand for more information about file name extensions. Remote file name in local use by the case, ntrans and nmap subcommands to change the settings generated. When sending files, ftp command will use the form, mode, struct, and type subcommands current settings. mkdir [RemoteDirectory] created in the RemoteDirectory parameters (remote host) in the specified directory. mls [RemoteDirectories LocalFile] expand on the remote host specified in the argument in RemoteDirectories directory and remote directory indicated by the abbreviation list of documents written to local files. If RemoteDirectories parameter contains pattern-matching characters, mls subcommand prompts for a local file (if not specified). If RemoteDirectories parameter is the remote directory with a space separated list, then list the last parameter should be a local file name or - (hyphen). If LocalFile argument is - (hyphen), mls subcommand displays a list of the local terminal. If you are prompted to enable interactive (see sub-command prompt), ftp command will prompt the user to verify that the last parameter is a local file and not a remote directory. mode [stream | block] to set file transfer mode. If the parameter is not provided, the default value stream. Please block file transfer mode is set to block. stream the file transfer mode is set to stream. modtime display the remote machine in the specified file was last modified. If the ftp command is not connected to the host prior to execution, the modtime sub command terminated with error messages. ftp command ignores parameter beyond the first argument. If the FileName parameter is not specified, ftp command prompts for file name. If no file name is given, ftp command will use the message sent to standard output, air force 1 high, and terminate the sub-command. If the remote host has FileName parameter specifies the name, and specify the name of a file, the ftp command will contain the file was last modified time of the message is sent to standard output, and terminate the sub-command. If FileName specifies a directory, the ftp command will error message to standard output, and terminate the sub-command. Note: modtime subcommand will explain in the time allowed per character. mput [LocalFiles] expansion in the host LocalFiles parameters specified in the file and copy the local file instructions to the remote host. See glob subcommand for more information about file name extensions. Local file name to use in the remote host by ntrans and nmap subcommands to change the settings generated. ftp command will send files, use the type, form, mode, and struct subcommands current settings. nlist [RemoteDirectory] [LocalFile] to the remote directory specified by the contents of the list (RemoteDirectory) write to the specified local file (LocalFile). If RemoteDirectory parameter is not specified, nlist subcommand lists the contents of the current remote directory. If LocalFile parameter is not specified or a - (hyphen), the nlist subcommand displays a list of the local terminal. nmap open or close the file name mapping mechanism. If you do not specify any parameters, the filename mapping will be closed. If the parameter is specified in the target file name is not specified when, for mget and mput subcommands and get and put subcommands mapping source file name. This sub-command on the local and remote host using a different file naming conventions and practices is useful. Mapping the following parameters set by the InPattern and OutPattern mode. InPattern parameter is passed in the template file name is specified, the file name may have been set up under the case and ntrans processed. Can be from $ 1 to $ 9 into InPattern variable contains the template parameters. In addition to $ (dollar sign) and $ (backslash, dollar sign) outside, InPattern parameters of all the characters are treated literally, and as InPattern delimiter between variables. For example, if InPattern parameter is $ 1. $ 2 and the remote file name is mydata.dat, then the value of $ 1 mydata, air force one high, $ 2 value is dat. This OutPattern parameter determines the outcome document of the name. From $ 1 to $ 9 variable parameters by their values obtained from the InPattern replaced, and the variable $ 0 will replace the original file name. In addition, if Sequence1 is not empty, sequence [Sequence1, Sequence2] will be replaced Sequence1; or it will Replace the Sequence2 value. For example, the sub-command: nmap $ 1. $ 2. $ 3 [$ 1, $ 2]. [$ 2, file] would be generated from the myfile.data or myfile.data.old myfile.data, arising from myfile myfile.file, from. Myfile produced myfile.myfile. Use the (backslash) symbol to prevent OutPattern parameter $ (dollar sign), [(left bracket),] (right bracket) and, (comma) the special significance. non-print form non-print sub-command synonyms. ntrans] open or close the file name character translation mechanism. If you do not specify any parameters, the character translation is turned off. If the parameter is specified in the target file name is not specified when the child will mget and mput commands and sub-commands get and put in the translation of the source file name characters. This sub-command on the local and remote host using a different file name conventions and practices is useful. Compliance InCharacters and OutCharacters character translation model parameters. Match InCharacters parameters of the characters in the source file name parameter in the corresponding characters will be OutCharacters character replacement. If InCharacters parameter specifies the string parameter specifies the string than OutCharacters long, and its parameters in the OutCharacters no corresponding characters, InCharacters of characters in a will be deleted. open HostName [Port] specified by the HostName parameter host establish FTP server. If the optional port number specified ftp command will try to connect the port of the server. If you have set up automatic logon feature (ie, air force one low, the-n flag is not specified on the command line), the ftp command will attempt to allow users to log on to the FTP server. You must also have one with the correct information, $ HOME / .netrc file and set the correct permission. . Netrc file should be in your home directory. passive passive file transfer mode switch. In the case of passive mode off calls file transfer command (such as get, mget, and put, or mput) when, ftp server, the client opens the data connection. In passive mode, the client sends and receives data in time to open a data connection to the host. set the protection level is set to private At this level, both the full protection of data but confidential. toggle interactive prompt tips. If the interactive prompt is enabled (default value) ftp command to retrieve, send or delete files (in the mget, mput, and mdelete) will prompt for authentication before the operation. Otherwise, ftp command in accordance with all specified files to execute. This command will return to protect the current level of protection. proxy [Subcommand] executed in the secondary control connection ftp command. This sub-sub-command ftp command allows simultaneous connection of two remote FTP servers to transfer files between two servers. The first proxy subcommand should be to establish a secondary control connection to open sub-command. Please enter a proxy? Sub command to see the other connections in the secondary sub-command ftp executable. The following sub-commands by proxy when the sub-command at the beginning of the performance will be different: * open sub-command in the automatic logon process does not define new macros. * Close subcommand does not erase existing macro definitions. * Get and mget subcommands host connection from the main document will be sent to the two connected hosts. * Put, mput, and append sub-command to the host connection from the second file transfer will be connected to the main host. * Restart subcommand can be proxy command for processing. * Status subcommand to display accurate information. File transfer requirements of the second connection of the FTP server must support the PASV (passive) command. put LocalFile [RemoteFile] to a local file storage to a remote host. If you do not specify RemoteFile parameters, ftp command will use the local file name remote file name, and remote file name from the ntrans and nmap subcommands to change the settings generated. ftp command will send files, will use the type, form, mode, and struct subcommands current settings. pwd Display remote host in the current directory name. quit close the connection and exit the ftp command. The same with the bye subcommand. quote verbatim string String parameter specifies the string to be sent to the remote host. Executive remotehelp or quote help subcommand to display valid values for String parameter list. Note: The data transfer involved record struct record subcommand synonyms. recv RemoteFile [LocalFile] Please copy the remote file to the local host. And get sub-command. reinitialize by refreshing all the I / O and allow to complete the transfer operation of the FTP session is re-initialized. FTP session is started by the user logged into the remote host, but the case reset all the default values. remotehelp [Subcommand] request for help from the remote FTP server. rename FromName ToName rename a file on the remote host. reset Clear reply queue. Analysis of this sub-command will allow the command to re-sync. restart get | put | append a check in the build location of the point on the restart file transfer. To run smoothly, with the exception of the sub-command should be the same as the command terminator, including structure, type and format. Effective parameters for the get, put and append. rmdir RemoteDirectory removed from the remote host in RemoteDirectory parameter remote directory specified. runique (ReceiveUnique) get and mget commands in the sub-period, the switch to a local destination file to create a unique file name functions. If this function is Otherwise, if the local file name for the local destination file with the same name as specified, ftp will use the .1 to modify the local destination file name specified. If the local file is to use a new name, ftp will add the suffix .2 to the specified name. If the local file is to use this second name, the ftp command will find only the file name or file name to find the only continue to increase until it reaches .99 suffix. If the ftp command can not find a unique file name, ftp will report an error does not occur during transmission. Please note runique subcommand does not affect the production from the shell command of the local file name. safe will protect level is set to At this level, data integrity will be protected. send LocalFile [RemoteFile] to a local file storage to a remote host. The sub-command put the same way. sendport switch for use FTP PORT command. By default, ftp command to establish a connection for each data transfer will be used when the PORT command. When the PORT command is disabled, ftp will not use the PORT command data transmission. In dealing with some of the FTP PORT command is useful when the server, the server is not properly instructed that instruction has been accepted will ignore PORT commands. site Args show or set using the chmod command to idle time-out period, displays or sets the file creation umask, or change the file permissions. Args parameter are umask and the possible value of chmod. size RemoteFile displayed in bytes RemoteFile parameters specified by the remote file size. status shows the current status of ftp commands and sub-command status. stream mode stream subcommand synonyms. struct [file | record] set the data transfer structure type. Effective parameters for the file and record. file structure of the data transfer type is set to file. record the data transfer structure type to record. sunique (Send / Store Unique) put and mput commands in the sub-period, the switch to the remote destination file to create a unique file name of the function. If this function is Otherwise, if the remote file name is specified for the remote destination file the same name, the remote FTP server modifies the name of the remote destination file. Please note that the remote server must support the STOU instruction. The system displays on remote machines running the operating system type. telnet form telnet subcommand synonyms. tenex type tenex synonymous sub-command. Tracking switch package tracking. type [ascii | binary | ebcdic | image | local M | tenex] set file transfer type. Effective parameters are ascii, nike air force 1 high, binary, ebcdic, image,, local M and tenex. If the parameter is not specified, the current type is displayed. The default type is ascii; binary type may be more efficient than ascii. ascii file transfer type to network ASCII. This type is the default. File transfer using the binary image transfer may be more effective. Please refer to binary parameters to obtain more information. binary file transfer type to binary image. This type of transmission may be more effective than ASCII. ebcdic the file transfer type to EBCDIC. image the file transfer type to binary image. This type of transmission may be more effective than ASCII. local M will file transfer type is set to local. Each computer word M parameter defines the number of decimal places. This parameter has no default value. tenex the file transfer type to TENEX machines need to type. user User [Password] [Account] identify the remote FTP server's local user (User). If the Password or Account parameter is not specified, the remote server requires it, the ftp command prompts for the local password and account. If the Account parameter is required, the ftp command in the remote login process is complete, it will be sent to the remote server. Note: Unless specified on the command line-n flag to disable automatic login, or ftp commands to User, Password and Account parameters automatically sent to the remote server used for the initial connection. You also need the main directory. Netrc file to publish automatically log on. more verbose way switch. If you enable verbose mode (the default), ftp command displays all of the remote FTP server response. In addition, ftp transfer will show all file transfer is complete statistical information. Example 1. To call the ftp command, log on the system canopus, display local help information, display remote help information, display status, switch bell, prompt, runique, trace, and verbose subcommands, and then quit, enter: $ ftp canopus name (canopus: eric): dee 331 dee password required. Password: 230 User dee logged. ftp> help Commands may be abbreviated. Command:! Delete mdelete proxy runique $ debug mdir sendport send account dir mget put size append disconnect mkdir pwd status ascii form mls quit struct bell get mode quote sunique binary glob modtime recv system bye hash mput remotehelp tenex case help nmap rstatus trace cd image nlist rhelp type cdup lcd ntrans rename user close ls open reset verbose cr macdef prompt rmdir? clear private protect safe ftp> remotehelp 214 - recognizes the following command (* => not implemented.) USER PORT RETR MSND * ALLO DELE SITE * XMKD CDUP PASS PASV STOR MSOM * REST * CWD STAT * RMD XCUP ACCT * TYPE APPE MSAM * RNFR XCWD HELP XRMD STOU REIN * STRU MLFL * MRSQ * RNTO LIST NOOP PWD QUIT MODE MAIL * MRCP * ABOR NLST MKD XPWD AUTH ADAT PROT PBSZ MIC ENC CCC No proxy connection. Mode: stream; Type: ascii; form: non-print; structure: File Details: Open; Bell: Off; Tip: open; the file name matched replacement: the only open store: Off; receiving unique: off Case: Off ; CR stripping: Open Ntrans: Off Nmap: off Hash mark printing: off; PORT cmds to use: on ftp> bell Bell to open the ftp> prompt Interactive mode off. ftp> runique the only open receiver. ftp> trace Packet tracing on. ftp> verbose verbose mode off. ftp> quit $ 2. to call the ftp command, log on the system canopus, print the working directory, change the working directory, the file transfer type is set to ASCII to send local files to a remote host, the working directory to the parent directory, and then exit, Please enter: $ ftp canopus Name (canopus: eric): dee 331 dee password required. Password: 230 User dee login. ftp> pwd 257 ftp> cd Desktop 250 CWD command successful. ftp> type ascii 200 Type set to A. ftp> send a typescript 200 PORT command successful. 150 for the typescript (128.114.4.99,1412) open data connection. 226 Transfer complete. ftp> cdup 250 CWD command successful. ftp> bye 221 Goodbye. $ 3. To call the function with automatic login ftp command (using the. Netrc files), open the session with the system canopus, log in, the working directory to the parent directory, display the working directory, list the current contents of the directory, delete files, list the current contents of the directory to write the local file, close the session, and then quit, enter: $ ftp canopus 331 dee password required. 230 User dee login. ftp> cdup 250 CWD command successful. ftp> pwd 257 ftp> dir 200 PORT command successful. 150 is / usr / bin / ls (128.114.4.99,1407) open data connection. (0 bytes). Total 104 drwxr-xr-x 2 system 32 Feb 23 17:55 bin Drwxr-xr-x 26 rios 4000 May 30 17:18 bin1 drwxr-xr-x 2 system 32 Feb 23 17:55 books drwxrwxrwx 18 rios 1152 Jun 5
|
|
|
08-29-2011, 05:47 AM
|
#4
|
Commander In Chief
Join Date: Sep 2010
Posts: 588
|
FTP is a File Transfer Protocol (file transfer protocol) the title, while the Chinese referred to as Control file on the Internet for two-way transmission. At the same time, it is an application (Application). Users can use it to your PC, all running around the world connected to the server FTP protocol to access a large number of server processes and information. The main function of FTP is to allow users to connect to a remote computer (the computer running the FTP server program) which look at the remote computer files, then copying the file from a remote computer on the local computer, or sent to the local computer's file to the remote computer.
directory
Work example anonymous ftp transfer protocol server system user account Category Real Guest user Anonymous (anonymous) users to transmit details of the transfer mode starts work FAQ About command parameter descriptor command uses the syntax sub-command (prompt) Example protect enterprise security best practices FTP program profiles Funds Transfer Pricing: Transfer pricing of funds works to download the example files, for example, when you start the FTP to copy files from a remote computer when you actually start two procedures: a local FTP client on the machine, which copy files to the FTP server make the request. Another is to start on the remote computer's FTP server program, which responds to your request to transfer the files you specify to your computer. FTP using FTP client interface and the graphical interface has two characters. Character FTP command interface complexity, variety. Graphical FTP client, the operation simple and convenient to many. Transfer Protocol simply, server support FTP protocol is FTP server, the following explanation of what FTP protocol. (File Transfer Protocol) In general, the use of the Internet's primary purpose is information sharing, file transfer, information sharing is a very important content. Internet to transfer files on the early implementation is not an easy thing to do, nike air force one low, we know that Internet is a very complex computer environment, PC, a workstation, a MAC, a mainframe, and a computer connected to the Internet, there are tens of millions of units and these computers may run different operating systems, Unix servers are running, but also to run Dos, Windows for PC machines and Macs running MacOS, etc., and all kinds of files between the operating system communication problems, the need for a unified File Transfer Protocol, which is called FTP. Based on different operating systems have different FTP applications, all of which applications are to comply with a protocol, so users can transfer your files to others or the environment from other users to access a file. Server system, like with most Internet services, FTP is a client / server systems. The user through a protocol to support FTP client program to connect to the remote host FTP server program. The user through a client program to the server program issued a command, the server program executes the commands issued by the user and returns the results of the implementation to the client. For example, the user issues a command, ask the server to the user to send a copy of a file, the server will respond to this command, the specified documents to the user's machine. Client program on behalf of the user receives this file, be stored in the user directory. Use them in the FTP, users often encounter two concepts: Used Internet language, users can program to the client (from) the remote host upload (downloading) files. When using FTP you must first log on the remote host to obtain the appropriate permissions, you only download or upload files. In other words, in order to transfer files with which computer to which computer must have the proper authorization. In other words, unless a user ID and password, otherwise it can not send files. That it violates the open Internet, Internet far more than a million on the FTP host, can not require each user to have each host account. Anonymous FTP is to solve the problems that arise. Anonymous FTP is a mechanism, through which users can connect to a remote host, and its download files without having to become registered users. The system administrator to create a special user ID, name anonymous, Internet on any person in any place can use the user ID. Anonymous FTP FTP program to connect through the host's way of connecting with the way ordinary FTP host, only in user ID in the request ID must be entered when the anonymous, the user ID's password can be any string. Traditionally, with their E-mail address as the password, the system maintenance program can record who is accessing these files. It is noteworthy that, anonymous FTP does not apply to all Internet hosts, it only applies to those providing the service host. When the remote host to provide anonymous FTP service, you specify certain directories to the public, to allow anonymous access. The rest of the system directory is in a hidden state. As a security measure, most of the anonymous FTP from the host allow users to download files, and does not allow users to upload files to him, that is, anonymous FTP users can host all the copies of all documents to your machine , but can not own any of the files on the machine copy to anonymous FTP host. Even if some anonymous FTP host does allow users to upload files, the user can only upload files to a specified upload directory. Subsequently, the system administrator to check the files, he would download these files to another directory in the public for other users to download, use this way, the remote host users have been protected to avoid some problems uploading documents, such as files with the virus. As an Internet user, via FTP in any copy files between two Internet hosts. But, in fact, most people have only one Internet account, FTP is mainly used to download public documents, such as sharing software, the technical support documents. There are thousands of anonymous Internet FTP host, the hosts kept the numerous documents for a free copy of the user. In fact, almost all types of information, all types of computer programs can be found on the Internet. This is the Internet to attract our important reasons. Anonymous ftp Anonymous FTP enables users to have the opportunity to access to the world's largest repository of information, the information base is up over time, and still growing, and never closed, involving almost all topics. And, all this is free. Internet Anonymous FTP is a common method of online publishing software. Internet has been able to continue to this day, because people use the standard services provided by standard protocol procedures. Program like this, there are many that is released via anonymous FTP, anyone can access them. There are a huge number of Internet in the anonymous FTP host, and more files, then in the end how can we know what a particular file is located in the anonymous FTP directory on the host it? This is the Archie server to complete the work. Archie will automatically search in the FTP host, file directory structure that contains all the information database, so you can find the file location information. Real user classification refers to accounts of these users have an account on the FTP service. When such users log on when the FTP server, the default home directory is a directory of its account name. However, it also can change to another directory. Such as the system's home directory and so on. Guest user FTP server, we tend to give a different department or a specific user set up an account. However, this account has a feature, is its only access to your home directory. Server through FTP service in this way to protect the security of other documents. Such accounts, in Vsftpd software called Guest users. Possession of such user's account can only access their home directory under the directory, but not access files outside the home directory. Anonymous (anonymous) users that is what we usually refer to anonymous access. Such user is not specified in the FTP server account, but it can still be anonymous access to certain public resources. FTP server in the formation of the time, we need the type of the user, the user classification. By default, Vsftpd server will create all the accounts are assigned to Real users. However, this often does not meet the enterprise security needs. Because these users can not only access their home directory, and that other users can access the directory. This is where the space to other users has brought a security risk. Therefore, enterprises should the actual situation, to modify the categories the user is. [1] start remote file transfer method requires the computer must be installed and run ftp client. In the windows during the installation of the operating system, usually installed tcp / ip protocol software, which will contain the ftp client. But the program is a graphical interface instead of the character interface, which must operate the way the command prompt, very convenient. Start the ftp client to work another way is to use the ie browser, the user need only input the address bar in ie's url address the following format: ftp:// [username: password @] ftp server name: [port number] ( In the CMD command line using the above method can also be connected, through the put command and the command to get the purpose of uploading and downloading through the ls command to list the directory, in addition to the above methods but can also enter the ftp cmd enter, then enter the open IP to establish a connection, this method also applies to connection under linux ftp server), ie a browser start by way Although you can use ftp, but slower, but also expose the password in the browser ie without security. So generally installed and running special ftp client. 1. On the local computer, log on to the Internet. 2. Search for a file sharing host or personal computer (usually a dedicated FTP server published on the website, above or personal computer to enter the host name, password, and path). 3 . When the remote host or each other's personal computer connection is established, with each other to provide the user name and password to log in to the host or each other's personal computers. 4. in the remote host PC or other successful landing, you can upload your want to share something or download something other authorized share (where things are those that go into computers and can see things on the screen). 5. to complete its work and close FTP download software, cutting off connections. In order to achieve file transfer, the user must run a special file transfer program such as Flashget have this function, there are many other specialized FTP transfer software, FlashFxp as one of the outstanding software. Interested users can try other software, such as LeapFTP is always different in style. Transfer details TCP / IP protocol, FTP standard commands for the TCP port number 21, Port way data port is 20. FTP task is a file from one computer to another computer, without operating system constraints. FTP transfer mode transmission in two ways: ASCII, binary. ASCII transfer method assumes that the user is a simple copy of the file contains ASCII code text, if the remote machine is not running on UNIX, typically when the file transfer ftp files will be automatically adjusted so that the paper explains the contents into another computer store that text file format. But often this is the case, the user is the file transfer is not included in text files, they may be procedures, databases, word processing files or compressed files. In the copy before any non-text files, using ftp binary command tells verbatim copy. Binary transfer mode in the binary transmission, the bit sequence to save the file to the original and the copy is bit-by-one correspondence. Even if the destination machine, the file contains the bit sequence is meaningless. For example, macintosh transmitted in binary executable file to the Windows system, other systems, this file can not be executed. As in ASCII mode to transfer binary files, even if not still translated. This will damage the data. (ASCII mode is generally assumed the first significant bit of each character is meaningless, because the combination of ASCII characters do not use it. If you transfer a binary file, all the bits are important.) Work FTP supports two modes: Standard (PORT mode , active mode), Passive (PASV, passive mode). Port mode FTP client and server first establish a connection to TCP 21 port used to send the command, the client needs to receive data channel, when sending in the PORT command. PORT command contains the client what port to receive data. When sending data, server-side through the TCP 20 port to connect your client to send data to the specified port. FTP server and the client must establish a new connection to transfer data. Passive mode and Standard mode control channel to establish a similar, but the connection is established to send Pasv command. Server receives Pasv command, open a temporary port (port number greater than 1023 less than 65535) and notify the client in this port to send data requests, FTP server, the client connection port, and then FTP server will send through this port data. Many firewall settings are not allowed to accept outside when the connection was launched, many located within the network firewall or FTP server does not support PASV mode, because the client can not open the FTP server through the firewall, the high end of the port; and many within the network client can not login with FTP server PORT mode, because the server's TCP 20 and the internal network can not create a new client connection, resulting not work. FAQ 1. FTP What is it? (See FTP simulation [2]) A: FTP is the abbreviation for File Transfer Protocol, the file transfer protocol for transferring files over the Internet, FTP file transfers usually refers to the application, divided into FTP client and FTP server program. 2. FTP do? A: FTP FTP client can connect to the FTP server, download files from FTP server to FTP client, or FTP client to upload files to FTP server. 3. FTP requires two TCP connections why? A: Client control connection with the transfer command, the server used to direct response answer. data connection is used to transfer files. FTP uses two connections to the command and data in the form of independent development, without disturbing each other. 4. Establish / close FTP control and data connection is the mechanism? A: Create a FTP control and data connection is established TCP connection process, you need three TCP packets (SYN, SYN / ACK, ACK). Close the FTP connection The process is the release of TCP connections, takes 4 TCP packet (FIN, ACK, FIN, ACK). 5. FTP commands and responses is the role? A: FTP client to the FTP server to send FTP commands, such as USER, PORT and so on. commands that FTP client requests an operation, such as USER sent to the server that the client user enters the user name. FTP server response to FTP to the client response, such as ;, each response is that the server of a state. such as Any e-2, display file information: DIR / LS 3, download the file: GET file name (downloaded to the current directory) 4, upload: PUT file name 5, multi-file download: MGET 6, multi-file upload: MPUT 7, exit: BYE 8, to help: HELP uses the local host and transfer files between remote hosts. Syntax ftp [-d] [-g] [-i] [-n] [-v] [-f] [-k realm] [-q [-C]] [HostName [Port]] describes the ftp command file transfer protocol FTP protocol allows the use of different file systems for data transfer between hosts. Although the data transfer protocol provides a high degree of flexibility, it still will not try to keep a file system-specific file attributes (such as file protection mode or modification time). Moreover, FTP protocol for the overall structure of the file system in a somewhat different assumptions, such as recycling and does not provide or do not allow this function to copy the subdirectories. Please note: If you are transferring files between systems, and the need to preserve file attributes or recursively copy subdirectories, use the rcp command. Subcommand
FTP installation interface
You can ftp> prompt, enter the sub-command to perform a task like this: remote directory listing, change the current local and remote directory, send multiple requests in a single files, create and remove directories, and escaping to the local shell execute shell commands. Please refer to sub-section to obtain the command description of each subcommand. If you run the ftp command instead of the specified HostName parameters for the remote host, ftp command immediately displays ftp> prompt, waiting for ftp subcommand. To connect to remote host, run the open subcommand. When the ftp command to connect to remote host, nike air force 1, ftp command prompt is displayed again ftp> prompt before the Council login name and password. If the remote host is not defined in the login password, ftp command is unsuccessful. ftp command interpreter (for the ftp> prompt, enter all the sub-command), will provide most of the file transfer program is not properties, such as: * the ftp command processing sub-file name argument * will be a focus as a sub-command single subcommand macro * from $ HOME / .netrc file into the macro these properties will help you streamline repetitive tasks, and allows you to use the ftp command in unattended mode. Command interpreter rules will be handled according to the following file name argument: * If this parameter is specified - (hyphen), the standard input (stdin) will be used for read operations, and standard output for write operations. * If you do not check the previous application, and the file name extension is enabled (see-g flag or the glob subcommand), the interpreter will be based on the rules of C shell extension. Replace the file name matching is enabled, and look forward to a single file name in the sub-command character used in pattern matching, the result may not look the same. For example, append and put subcommands will expand the file name, and then generated using only the first file name. Other ftp subcommands, such as cd, delete, get, mkdir, rename, and rmdir does not perform file name expansion and pattern matching characters literally accepted. * For the get, put, mget, and mput subcommands, the interpreter has the ability of different local and remote file-name syntax styles between the translation and mapping (refer to case, ntrans and nmap subcommands) and the local file name is not The only cases where the ability to amend it (see runique sub-command). In addition, if the remote file name is not unique, the ftp command to send commands to the remote ftpd server to modify the remote file name (see sunique subcommand). * Use double quotes (Please note: ftp command interpreter does not support the pipe. Need not support all multi-byte character file names. To the end, when run interactive ftp session, use the quit or bye subcommand or the ftp> prompt at the End of File (Ctrl-D) key sequence. File transfer to end it before the completion, press the interrupt key sequence. The default stty command can be used to redefine the key series. ftp command under normal circumstances, be suspended immediately being sent (from the local host to remote host) transmission. ftp command sent by FTP ABOR instruction to the remote FTP server, to suspend the transmission is received (from the remote host to local host), and discard all incoming file transfer packets (until the remote server to stop sending them so far.) If the remote server does not support the ABOR command, the remote server does not send all the requested documents before, ftp command does not display ftp> prompt. In addition, if the remote server to perform the operation is not expected, you may need to end the local ftp process. Security and Automatic Login if If you run the ftp command and specify the remote host's host name (HostName), ftp command attempts to establish a connection to the specified host. If a successful connection ftp command, ftp command in the current directory or search for local home directory $ HOME / .netrc file. If the file exists, ftp command will start the login process to search for the file entry, search for macro definitions in the command remote host. If the $ HOME / .netrc file or automatic login entry does not exist, or the system has been protected using securetcpip command, ftp command prompts the user to enter a user name and password. Regardless of whether the specified HostName command line parameters, the command will display this prompt. Please note: queuing system does not support multibyte host names. If the ftp command to find the specified host $ HOME / .netrc automatically log entries, ftp will attempt to use the login information in the log entry remote host. ftp command also loads any command defined in registry key macro. In some cases (for example, automatically log the required password entry is not listed), ftp command will display ftp> prompt before the password prompt. Once the ftp command to complete the automatic login, if the macro is defined automatically log items, ftp command executes the init macro. If the init macro does not exist or does not contain quit or bye subcommand, ftp command displays the ftp> prompt and waits for a subcommand. Please note: at the prompt or in $ HOME / .netrc remote host specified in the file name must exist, and have defined the remote host password. Otherwise, ftp command is invalid. If the Kerberos 5 authentication method is currently: ftp command by the text block in the IETF draft FTP security extensions will use the GSSAPI provides security and for the basic communication mechanism is independent of the service. GSSAPI is rfc 1508 and 1509 defined. ftp command will use the AUTH and ADAT command to verify the ftpd daemon. If both support Kerberos authentication, they will use local user authentication DCE credentials on the remote system users. If this fails, and both systems are equipped with HostName parameter is the destination host to send the file name. The optional Port parameter specifies the port identifier, is transmitted through this port. (/ Etc / services file specifies the default port.) Mark-C allows the user to specify: a document issued by send_file command must be high-speed buffer in the network (NBC) in the buffer after processing. This flag must be-q flag is specified circumstances. Only when the file in the case of unprotected sent in binary mode only for this flag. -D will be about ftp command operations of the debugging information sent to the syslogd daemon. If you specify the-d flag, you must edit / etc / syslog.conf file and add the following in one: OR user.debug FileName Please note: syslogd daemon debug level includes info level messages. If you do not edit the / etc / syslog.conf file, no message. Change the / etc / syslog.conf file, run the refresh-s syslogd or kill -1 SyslogdPID order to inform the syslogd daemon changes its configuration files. For more information about debug levels, refer to / etc / syslog.conf file. Please also refer to debug subcommand. -G Disable file name in the meta-character expansion. Explanation refer to the expansion of metacharacters (sometimes called the file name matched replacement) file name. See glob subcommand. -I turn off the interactive file transfer and more tips. Please refer to prompt, mget, mput and mdelete subcommand to get more tips in the file transfer description. -N to prevent the initial connection of the automatic logon. Otherwise, ftp command will search $ HOME / .netrc log entries, log entries describe the remote host's login and initialization process. Please refer to user sub-command. -Q allows the user to specify: send_file subroutine must be used to send the file on the network. Only when the file in the case of unprotected sent in binary mode only for this flag. -V displays all the remote server to respond, and provide data transfer statistics. When the ftp command output to the terminal (such as console or display), this display is the default mode. If stdin is not terminal, unless the user invoked the ftp with the-v flag command, or send verbose sub-command, or ftp mode will be disabled in detail. -F led to forward credentials. If the Kerberos 5 authentication method is not present, this flag will be ignored. -K realm If the domain is different from the remote station domain local system, the system will allow the user to specify a remote field station. Therefore, the domain and the DCE units are synonymous. If the Kerberos 5 authentication method is not present, this flag will be ignored. Sub-command (prompt) the following sub-commands ftp ftp> prompt. Use double quotes (! [Command [arguments]] called on the local host interactive shell. Shell commands can be provided by one or more optional parameters with an optional command. $> Macro [arguments] Run the specified macro (previously defined using the macdef subcommand). Parameters are not expanded. ? [Sub-command] Display help message descriptor command. If you do not specify the Subcommand parameter, ftp command displays a list of known subcommands. account [Password] to send the remote host to access its resources in the authorization may be required before additional password. If the password is not provided by the command will prompt the user for a password. Password is not displayed on the screen. append LocalFile [RemoteFile] to a local file to remote host file. If the remote file name is not specified, will use the local file name, the file name or the nmap subcommand by the ntrans generated sub-command to change any settings. When adding files, append sub-command will form, mode, struct, and type the command using the current value of the child. ascii type ascii subcommand synonyms. bell after each file transfer process is completed soon as the bell rang. binary type binary subcommand synonyms. block mode block subcommand synonyms. bye end of the file transfer session and exits ftp command. The same with the quit subcommand. carriage-control form carriage-control sub-command synonyms. case for the file name case to set a switch. When the case subcommand when the ftp command will open all the remote file name from uppercase to lowercase (to write them a local directory.) The default value is off (like ftp command in the local directory will be written in a format by uppercase uppercase remote file names.) cd RemoteDirectory the remote host in the working directory to the specified directory. cdup the remote host in the working directory to the parent directory of the current directory. close end of the file transfer session, but do not exit the ftp command. Defined macro has been erased. And disconnect sub-command. copylocal switch the local copy. copylocal default is off. ftp ftp through the implementation of the operation itself is not zero confirm your files (such as the same host name and the same path name.) Open to bypass this check will copylocal. cr in the ASCII file transfer type received during the record, from the carriage return and line-feed sequence to remove carriage return characters. (Ftp command file transfer during the suspension with a carriage return and line type of each ASCII record.) Remote host (the operating system and are running different operating systems) embedded in the record can have a single line records. Distinguish them from the record delimiter embedded line, please set the cr subcommand to Off. cr sub-command will switch between on and off. debug [0 | 1] in the debug record keeping to switch between on and off. Specify debug or debug 1, sent to the remote host to print each command and save the restart control file. Reassign debug or debug 0, to stop debugging record keeping. Ctrl-C key will save the restart control file. Specifies the debug sub-command ftp command operations on the debugging information to syslogd daemon. If you specify the debug subcommand, you must edit / etc / syslog.conf file and add one of the following: Please note: syslogd daemon debug level includes info level messages. If you do not edit the / etc / syslog.conf file, no message. Change the / etc / syslog.conf file, run the refresh-s syslogd or kill -1 SyslogdPID order to inform the syslogd daemon changes its configuration files. For more information about debug levels, refer to / etc / syslog.conf file. See also ftp-d flag. delete RemoteFile remove the specified remote file. dir [RemoteDirectory] [LocalFile] to the remote directory specified by the contents of the list (RemoteDirectory) write to the specified local file (LocalFile). If RemoteDirectory parameter is not specified, dir subcommand lists the contents of the current remote directory. If LocalFile parameter is not specified or a - (hyphen), the dir subcommand displays a list of the local terminal. disconnect end of the file transfer session, but does not exit ftp command. Defined macro has been erased. And close sub-command. ebcdic type ebcdic subcommand synonyms. exp_cmd in the conventional and experimental protocol command in the switch. The default is off. file struct file subcommand synonyms. form [carriage-control | non-print | telnet] Specifies the file transfer format. form sub-sub-type command to modify the command to send the file format by direct transfer. Effective parameters for carriage-control, non-print, and telnet. carriage-control format of the file transfer is set to carriage-control. non-print format of the file transfer is set to non-print. telnet file transfer format is set to Telnet. Telnet connection to the system is open Transmission Control Protocol / Internet Protocol (TCP / IP). get RemoteFile [LocalFile] remote file copy to the local host. If LocalFile parameter is not specified, the remote file name used locally by the case, ntrans and nmap subcommands to change any settings generated. ftp command to transfer files, it will use the type, form, mode, and struct subcommands current settings. glob switch mdelete, mget, and mput subcommands expand the file name (file name matches the replacement.) If the file name matched replacement disabled, these sub-commands of the file name argument will not be expanded. Replace the file name matching is enabled, and look forward to a single file name in the sub-command character used in pattern matching, the result may not look the same. For example, append and put subcommands will expand the file name, and then generated using only the first file name. Other ftp subcommands, such as cd, delete, get, mkdir, rename, and rmdir does not perform file name expansion and pattern matching characters literally accepted. mput subcommand replaces the file name matches the local executive, in a manner the same way as with the csh command. For mdelete and mget subcommands, each file name on the remote machine is to be extended, respectively, and the list will not be merged. According to the remote host and the ftp server, different directory name and file name of the expansion of the expansion may be different. To preview the expansion of the directory name, use the mls subcommand. mls RemoteFile transfer files to the directory sub-tree, do not use the mget or mput subcommand, while the binary format to send sub-tree tar archive. Switch hash hash sign (#) printing. When the hash subcommand is turned on when the ftp command data transmitted for each block (1024 bytes) shows a hash symbol. help [subcommand] Displays help information. See? Sub-command. image type image subcommand synonyms. lcd [Directory] change the working directory of the local host. If you do not specify a directory, ftp command will use the home directory. local M type local M sub-command synonyms. ls [RemoteDirectory] [LocalFile] set the remote directory abbreviated list of documents written to the local file. If RemoteDirectory parameter is not specified, ftp command lists the current remote directory. If LocalFile parameter is not specified or a - (hyphen), the ftp command displays a list of the local terminal. macdef Macro defined subcommand macro. Then the line until a blank line (two consecutive line breaks) to save the text as a macro. All macro definitions for up to 16 macros, containing 4096 characters. Redefine or close the sub-commands before execution, the macro should be maintained as defined macros. $ (Dollar sign) and (backslash) are special characters in ftp macros. Follow one or more digits of the $ sign will be called line replaced by the corresponding macro parameter (see $ subcommand). $ Symbol followed by the letter i after the loop that will be the macro, $ i character combination will be passed in each row of characters replaced. The first parameter for the first pass, the second parameter for the second pass, and so on. Symbol prevents special treatment of the next character. Use the symbol off $ and . (Backslash period) symbols of special significance. mdelete RemoteFiles RemoteFiles extended argument on the remote host specified by the file and delete the remote file. mdir [RemoteDirectories LocalFile] RemoteDirectories extended argument on the remote host specified directory, and write the contents of the directory list of parameters defined in the LocalFile file. If RemoteDirectories parameter contains pattern-matching characters, mdir sub-command will prompt for a local file (if not specified). If RemoteDirectories parameter is the remote directory with a space separated list, then list the last parameter must be a local file name or - (hyphen). If LocalFile argument is - (hyphen), mdir sub-command displays a list of the local terminal. If you are prompted to enable interactive (see sub-command prompt), ftp command will prompt the user to verify that the last parameter is a local file and not a remote directory. mget RemoteFiles Please expand on the remote host RemoteFiles parameters, and indicates the remote file copy to the local host's current directory. See glob subcommand for more information about file name extensions. Remote file name in local use by the case, ntrans and nmap subcommands to change the settings generated. When sending files, ftp command will use the form, mode, struct, and type subcommands current settings. mkdir [RemoteDirectory] created in the RemoteDirectory parameters (remote host) in the specified directory. mls [RemoteDirectories LocalFile] expand on the remote host specified in the argument in RemoteDirectories directory and remote directory indicated by the abbreviation list of documents written to local files. If RemoteDirectories parameter contains pattern-matching characters, mls subcommand prompts for a local file (if not specified). If RemoteDirectories parameter is the remote directory with a space separated list, then list the last parameter should be a local file name or - (hyphen). If LocalFile argument is - (hyphen), mls subcommand displays a list of the local terminal. If you are prompted to enable interactive (see sub-command prompt), ftp command will prompt the user to verify that the last parameter is a local file and not a remote directory. mode [stream | block] to set file transfer mode. If the parameter is not provided, the default value stream. Please block file transfer mode is set to block. stream the file transfer mode is set to stream. modtime display the remote machine in the specified file was last modified. If the ftp command is not connected to the host prior to execution, the modtime sub command terminated with error messages. ftp command ignores parameter beyond the first argument. If the FileName parameter is not specified, ftp command prompts for file name. If no file name is given, ftp command will use the message sent to standard output, air force 1 high, and terminate the sub-command. If the remote host has FileName parameter specifies the name, and specify the name of a file, the ftp command will contain the file was last modified time of the message is sent to standard output, and terminate the sub-command. If FileName specifies a directory, the ftp command will error message to standard output, and terminate the sub-command. Note: modtime subcommand will explain in the time allowed per character. mput [LocalFiles] expansion in the host LocalFiles parameters specified in the file and copy the local file instructions to the remote host. See glob subcommand for more information about file name extensions. Local file name to use in the remote host by ntrans and nmap subcommands to change the settings generated. ftp command will send files, use the type, form, mode, and struct subcommands current settings. nlist [RemoteDirectory] [LocalFile] to the remote directory specified by the contents of the list (RemoteDirectory) write to the specified local file (LocalFile). If RemoteDirectory parameter is not specified, nlist subcommand lists the contents of the current remote directory. If LocalFile parameter is not specified or a - (hyphen), the nlist subcommand displays a list of the local terminal. nmap open or close the file name mapping mechanism. If you do not specify any parameters, the filename mapping will be closed. If the parameter is specified in the target file name is not specified when, for mget and mput subcommands and get and put subcommands mapping source file name. This sub-command on the local and remote host using a different file naming conventions and practices is useful. Mapping the following parameters set by the InPattern and OutPattern mode. InPattern parameter is passed in the template file name is specified, the file name may have been set up under the case and ntrans processed. Can be from $ 1 to $ 9 into InPattern variable contains the template parameters. In addition to $ (dollar sign) and $ (backslash, dollar sign) outside, InPattern parameters of all the characters are treated literally, and as InPattern delimiter between variables. For example, if InPattern parameter is $ 1. $ 2 and the remote file name is mydata.dat, then the value of $ 1 mydata, air force one high, $ 2 value is dat. This OutPattern parameter determines the outcome document of the name. From $ 1 to $ 9 variable parameters by their values obtained from the InPattern replaced, and the variable $ 0 will replace the original file name. In addition, if Sequence1 is not empty, sequence [Sequence1, Sequence2] will be replaced Sequence1; or it will Replace the Sequence2 value. For example, the sub-command: nmap $ 1. $ 2. $ 3 [$ 1, $ 2]. [$ 2, file] would be generated from the myfile.data or myfile.data.old myfile.data, arising from myfile myfile.file, from. Myfile produced myfile.myfile. Use the (backslash) symbol to prevent OutPattern parameter $ (dollar sign), [(left bracket),] (right bracket) and, (comma) the special significance. non-print form non-print sub-command synonyms. ntrans] open or close the file name character translation mechanism. If you do not specify any parameters, the character translation is turned off. If the parameter is specified in the target file name is not specified when the child will mget and mput commands and sub-commands get and put in the translation of the source file name characters. This sub-command on the local and remote host using a different file name conventions and practices is useful. Compliance InCharacters and OutCharacters character translation model parameters. Match InCharacters parameters of the characters in the source file name parameter in the corresponding characters will be OutCharacters character replacement. If InCharacters parameter specifies the string parameter specifies the string than OutCharacters long, and its parameters in the OutCharacters no corresponding characters, InCharacters of characters in a will be deleted. open HostName [Port] specified by the HostName parameter host establish FTP server. If the optional port number specified ftp command will try to connect the port of the server. If you have set up automatic logon feature (ie, air force one low, the-n flag is not specified on the command line), the ftp command will attempt to allow users to log on to the FTP server. You must also have one with the correct information, $ HOME / .netrc file and set the correct permission. . Netrc file should be in your home directory. passive passive file transfer mode switch. In the case of passive mode off calls file transfer command (such as get, mget, and put, or mput) when, ftp server, the client opens the data connection. In passive mode, the client sends and receives data in time to open a data connection to the host. set the protection level is set to private At this level, both the full protection of data but confidential. toggle interactive prompt tips. If the interactive prompt is enabled (default value) ftp command to retrieve, send or delete files (in the mget, mput, and mdelete) will prompt for authentication before the operation. Otherwise, ftp command in accordance with all specified files to execute. This command will return to protect the current level of protection. proxy [Subcommand] executed in the secondary control connection ftp command. This sub-sub-command ftp command allows simultaneous connection of two remote FTP servers to transfer files between two servers. The first proxy subcommand should be to establish a secondary control connection to open sub-command. Please enter a proxy? Sub command to see the other connections in the secondary sub-command ftp executable. The following sub-commands by proxy when the sub-command at the beginning of the performance will be different: * open sub-command in the automatic logon process does not define new macros. * Close subcommand does not erase existing macro definitions. * Get and mget subcommands host connection from the main document will be sent to the two connected hosts. * Put, mput, and append sub-command to the host connection from the second file transfer will be connected to the main host. * Restart subcommand can be proxy command for processing. * Status subcommand to display accurate information. File transfer requirements of the second connection of the FTP server must support the PASV (passive) command. put LocalFile [RemoteFile] to a local file storage to a remote host. If you do not specify RemoteFile parameters, ftp command will use the local file name remote file name, and remote file name from the ntrans and nmap subcommands to change the settings generated. ftp command will send files, will use the type, form, mode, and struct subcommands current settings. pwd Display remote host in the current directory name. quit close the connection and exit the ftp command. The same with the bye subcommand. quote verbatim string String parameter specifies the string to be sent to the remote host. Executive remotehelp or quote help subcommand to display valid values for String parameter list. Note: The data transfer involved record struct record subcommand synonyms. recv RemoteFile [LocalFile] Please copy the remote file to the local host. And get sub-command. reinitialize by refreshing all the I / O and allow to complete the transfer operation of the FTP session is re-initialized. FTP session is started by the user logged into the remote host, but the case reset all the default values. remotehelp [Subcommand] request for help from the remote FTP server. rename FromName ToName rename a file on the remote host. reset Clear reply queue. Analysis of this sub-command will allow the command to re-sync. restart get | put | append a check in the build location of the point on the restart file transfer. To run smoothly, with the exception of the sub-command should be the same as the command terminator, including structure, type and format. Effective parameters for the get, put and append. rmdir RemoteDirectory removed from the remote host in RemoteDirectory parameter remote directory specified. runique (ReceiveUnique) get and mget commands in the sub-period, the switch to a local destination file to create a unique file name functions. If this function is Otherwise, if the local file name for the local destination file with the same name as specified, ftp will use the .1 to modify the local destination file name specified. If the local file is to use a new name, ftp will add the suffix .2 to the specified name. If the local file is to use this second name, the ftp command will find only the file name or file name to find the only continue to increase until it reaches .99 suffix. If the ftp command can not find a unique file name, ftp will report an error does not occur during transmission. Please note runique subcommand does not affect the production from the shell command of the local file name. safe will protect level is set to At this level, data integrity will be protected. send LocalFile [RemoteFile] to a local file storage to a remote host. The sub-command put the same way. sendport switch for use FTP PORT command. By default, ftp command to establish a connection for each data transfer will be used when the PORT command. When the PORT command is disabled, ftp will not use the PORT command data transmission. In dealing with some of the FTP PORT command is useful when the server, the server is not properly instructed that instruction has been accepted will ignore PORT commands. site Args show or set using the chmod command to idle time-out period, displays or sets the file creation umask, or change the file permissions. Args parameter are umask and the possible value of chmod. size RemoteFile displayed in bytes RemoteFile parameters specified by the remote file size. status shows the current status of ftp commands and sub-command status. stream mode stream subcommand synonyms. struct [file | record] set the data transfer structure type. Effective parameters for the file and record. file structure of the data transfer type is set to file. record the data transfer structure type to record. sunique (Send / Store Unique) put and mput commands in the sub-period, the switch to the remote destination file to create a unique file name of the function. If this function is Otherwise, if the remote file name is specified for the remote destination file the same name, the remote FTP server modifies the name of the remote destination file. Please note that the remote server must support the STOU instruction. The system displays on remote machines running the operating system type. telnet form telnet subcommand synonyms. tenex type tenex synonymous sub-command. Tracking switch package tracking. type [ascii | binary | ebcdic | image | local M | tenex] set file transfer type. Effective parameters are ascii, nike air force 1 high, binary, ebcdic, image,, local M and tenex. If the parameter is not specified, the current type is displayed. The default type is ascii; binary type may be more efficient than ascii. ascii file transfer type to network ASCII. This type is the default. File transfer using the binary image transfer may be more effective. Please refer to binary parameters to obtain more information. binary file transfer type to binary image. This type of transmission may be more effective than ASCII. ebcdic the file transfer type to EBCDIC. image the file transfer type to binary image. This type of transmission may be more effective than ASCII. local M will file transfer type is set to local. Each computer word M parameter defines the number of decimal places. This parameter has no default value. tenex the file transfer type to TENEX machines need to type. user User [Password] [Account] identify the remote FTP server's local user (User). If the Password or Account parameter is not specified, the remote server requires it, the ftp command prompts for the local password and account. If the Account parameter is required, the ftp command in the remote login process is complete, it will be sent to the remote server. Note: Unless specified on the command line-n flag to disable automatic login, or ftp commands to User, Password and Account parameters automatically sent to the remote server used for the initial connection. You also need the main directory. Netrc file to publish automatically log on. more verbose way switch. If you enable verbose mode (the default), ftp command displays all of the remote FTP server response. In addition, ftp transfer will show all file transfer is complete statistical information. Example 1. To call the ftp command, log on the system canopus, display local help information, display remote help information, display status, switch bell, prompt, runique, trace, and verbose subcommands, and then quit, enter: $ ftp canopus name (canopus: eric): dee 331 dee password required. Password: 230 User dee logged. ftp> help Commands may be abbreviated. Command:! Delete mdelete proxy runique $ debug mdir sendport send account dir mget put size append disconnect mkdir pwd status ascii form mls quit struct bell get mode quote sunique binary glob modtime recv system bye hash mput remotehelp tenex case help nmap rstatus trace cd image nlist rhelp type cdup lcd ntrans rename user close ls open reset verbose cr macdef prompt rmdir? clear private protect safe ftp> remotehelp 214 - recognizes the following command (* => not implemented.) USER PORT RETR MSND * ALLO DELE SITE * XMKD CDUP PASS PASV STOR MSOM * REST * CWD STAT * RMD XCUP ACCT * TYPE APPE MSAM * RNFR XCWD HELP XRMD STOU REIN * STRU MLFL * MRSQ * RNTO LIST NOOP PWD QUIT MODE MAIL * MRCP * ABOR NLST MKD XPWD AUTH ADAT PROT PBSZ MIC ENC CCC No proxy connection. Mode: stream; Type: ascii; form: non-print; structure: File Details: Open; Bell: Off; Tip: open; the file name matched replacement: the only open store: Off; receiving unique: off Case: Off ; CR stripping: Open Ntrans: Off Nmap: off Hash mark printing: off; PORT cmds to use: on ftp> bell Bell to open the ftp> prompt Interactive mode off. ftp> runique the only open receiver. ftp> trace Packet tracing on. ftp> verbose verbose mode off. ftp> quit $ 2. to call the ftp command, log on the system canopus, print the working directory, change the working directory, the file transfer type is set to ASCII to send local files to a remote host, the working directory to the parent directory, and then exit, Please enter: $ ftp canopus Name (canopus: eric): dee 331 dee password required. Password: 230 User dee login. ftp> pwd 257 ftp> cd Desktop 250 CWD command successful. ftp> type ascii 200 Type set to A. ftp> send a typescript 200 PORT command successful. 150 for the typescript (128.114.4.99,1412) open data connection. 226 Transfer complete. ftp> cdup 250 CWD command successful. ftp> bye 221 Goodbye. $ 3. To call the function with automatic login ftp command (using the. Netrc files), open the session with the system canopus, log in, the working directory to the parent directory, display the working directory, list the current contents of the directory, delete files, list the current contents of the directory to write the local file, close the session, and then quit, enter: $ ftp canopus 331 dee password required. 230 User dee login. ftp> cdup 250 CWD command successful. ftp> pwd 257 ftp> dir 200 PORT command successful. 150 is / usr / bin / ls (128.114.4.99,1407) open data connection. (0 bytes). Total 104 drwxr-xr-x 2 system 32 Feb 23 17:55 bin Drwxr-xr-x 26 rios 4000 May 30 17:18 bin1 drwxr-xr-x 2 system 32 Feb 23 17:55 books drwxrwxrwx 18 rios 1152 Jun 5
|
|
|
Thread Tools |
Search this Thread |
|
|
Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT. The time now is 09:00 AM.
|
|