The FTP command is one of the most frequently used commands for Internet users, whether using FTP under DOS or UNIX operating systems, you will encounter a large number of FTP internal commands, familiar with and flexible application of FTP internal commands, can greatly facilitate users, for the current dial-up Internet Users, if the ISP provides a shell that can use Nohup, then FTP will be your cheapest way to download the FTP command line format: ftp-v-d-i-n-g[host name]
-V Displays all the response information for the remote server.
-d use debug mode.
-N Restricts automatic logon of FTP, that is, the. netrc file is not used.
-G cancels the global filename.
The internal commands used by FTP are as follows (where parentheses indicate an option):
1.! [Cmd[args] Executes the interactive shell in the local machine, exit back to the FTP environment, such as!ls *. zip.
2.¥macro-ame[args] Executes the macro definition Macro-name.
3.account[password] provides the additional password required to access system resources after the successful logon of the remote system.
4.appendlocal-file[remote-file] Appends the local file to the remote system host and uses the local file name if no remote system file name is specified.
5.ASCII uses the ASCII type transfer mode.
6.bell the computer rings once after each command has finished executing.
7.bin use binary file transfer mode.
8.bye exits the FTP session process.
9.case when using Mget, the upper case of the remote host file name is converted to lowercase letters.
10.CD Remote-dir into the remote host directory.
11.cdup into the parent directory of the remote host directory.
12.chmod Modefile-name Sets the access mode for the remote host file File-name to mode, such as chmod 777 a.out.
13.close interrupts the FTP session with the remote server (corresponding to open).
14.CR converts a carriage return line to a back line when the file is transferred using the Asscii method.
15.delete Remote-file Deletes the remote host file.
16.debug[debug-value] Sets the debug mode to display every command sent to a remote host, such as DEBUP3, if set to 0, to cancel Debug.
17.dir[remote-dir][local-file] Displays the remote host directory and deposits the results in Local-file.
18.disconnection with close.
19.form format sets the file transfer mode to format, which defaults to the filename.
20.getremote-file[local-file] passes the remote host's file Remote-file to the local-file of the local hard drive.
21.glob sets the file name extension for Mdelete, Mget, mput, the default is not to extend the file name, and the command line-G parameter.
22.hash 1024 bytes per transmission, displaying a hash symbol (#).
23.help[cmd] Displays help information for the FTP internal command cmd, such as aid get.
24.idle[seconds] Sets the remote server's hibernate timer to [seconds] seconds.
25.image Set binary transmission mode (same binary)
26.LCD[DIR] Switches The local working directory to dir.
27.ls[remote-dir][local-file] Displays the remote directory Remote-dir and stores the local local-file.
28.macdef Macro-name defines a macro that, when it encounters an empty row under Macdef, ends the macro definition.
29.mdelete[remote-file] Deletes the remote host file.
30.mdir Remote-files Local-file is similar to dir, but can specify multiple remote files, such as Mdir *. O. *. Zipoutfile.
31.mget remote-files transfer multiple remote files.
32.mkdir dir-name Build a directory in the remote host.
33.MLS remote-file local-file with nlist, but multiple file names can be specified.
34.mode[mode-name] Sets the file transfer mode to Mode-name and defaults to the stream method.
35.modtime File-name Displays the last modification time of the remote host file.
36.mput Local-file Transfer multiple files to a remote host.
37.newerfile-name if the file-name in the remote machine is modified more recently than the local hard disk file with the same name, the file is retransmission.
38.nlist[remote-dir][local-file] Displays a list of files for the remote host directory and stores the Local-file on the local hard drive.
39.nmap[inpatternoutpattern] Sets the file name mapping mechanism so that some characters in the file are converted to each other, such as Nmap¥1, when the file is transferred. ¥2. ¥3[¥1,¥2]. [¥2,¥3], the file name changes to A1, A2 when the file A1. A2.a3 is transferred, especially if the remote host is not a U-nix machine.
40.ntrans[inchars[outchars] Sets the translation mechanism for a file name character, such as NTRANS1R, the filename LLL becomes RRR.
41.open Host[port] Establishes a connection to the specified FTP server, which specifies the connection port.
42.passive into passive transmission mode.
43.prompt set up interactive prompts for multiple file transfers.
44.proxyftp-cmd in a secondary control connection, an FTP command is executed that allows two FTP servers to be connected to transfer files between two servers. The first FTP command must be open to establish a connection between two servers first.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.