1th Section FTP Basic command Introduction file transfer software use format: Ftp<ftp address, if the connection is successful, the system will prompt the user to enter a username and password:
Login: (Enter the legal username or "anonmous"): PASSWORD: (Enter the legal password, if the "anonmous" way to log in, generally do not use a password):
After entering the FTP site that you want to connect to, the user can perform the appropriate file transfer operation, some of the important commands and similar commands are as follows:
1 Help,?, Rheip, Remotehelp
Help displays the command instructions on the local side and displays all available commands if not accepted;
? equivalent to help, for example:? Cd:
Rhelp with help, but it is used to show the remote end of the command instructions;
Remotehelp is equivalent to Rhelp.
2 ASC (ASCLL), Bm (bmary), IMAGE, TYPE
ASCII switching mode is Text mode (can only be used to transfer doc files, because it is 7-bit);
Binary switching mode is binary mode (except for text files used in this mode);
Image is equivalent to binary:
Type lets you change or display the current transfer mode.
3) BYE, QUIT
Bye exit ftp:
Quit is equivalent to bye.
4 CD, Cdup, LCD, P~WD,!
CD changes the current working directory, for example: cd\pub;
Cdup back to the previous level, which is equivalent to you playing CD. :
LCD lets you change or display the working directory on the local side, such as: lcd\tmp;
PWD Displays the current working directory (remote End):
Let you execute the shell command, for example:! Ls.
5) DELETE, Mdelete, RENAME
Delete Deletes a remote-end file:
Mdelete Batch Delete file, need to cooperate with?
Rename Change the file name of the remote end.
6 Get, Mget, put, Mput, RECV, SEND
Get down-pass file;
Mget batch transfer file, need to cooperate with million characters, such as: mget*. GZ;
put upload file;
mput batch upload file, need to cooperate with million characters;
Recv is equivalent to get (recv is shorthand for Recewe):
Send is equivalent to put.
7) HASH, PROMPT, VERBOSE, STATUS, BELL
Hash Toggle # Font size appears, each of the # font size indicates the transmission of the 1024/8192bytes:
prompt switch Interactiveon/off;
Verbose toggle the display of all file transfer processes;
Status shows some of the current parameters:
Bell screams when the instructions are done.
8 LS, DIR, MLS, Mdir, MKDIR, RMDIR
LS is a bit like the LS (LIST) command under UNIX:
Dir is equivalent to Ls-l (List-long);
MLS simply saves a file in a remote directory at the local side of a file;
Mdir equivalent to MLS;
MkDir is the same as MD (creating a subdirectory) under DOS:
RmDir is like an RD (delete subdirectory) under DOS.
9 OPEN, Close, DISCONNECT, user
Open connects to a remote FTP server;
Close closes the current connection; Disconnect is equivalent to closing;
User enters the username and password again (somewhat like Su on Unix).
Section II FTP command fully mastered
The FTP command is one of the most frequently used commands for Intemet users, and will encounter a large number of FTP internal commands, whether using FTP under DOS or UNIX operating systems. Familiar with and flexible application of FTP internal command, can greatly facilitate users, and received a multiplier effect.
The command line format for FTP is:
ftp-v-d-i-n-g[host name], where:
-v--displays all the response information for the remote server;
-N. ------Limit the automatic logon of FTP, that is not used;
N-----etrc File:
-d--Use Debug mode:
g--cancels the global filename.
The internal commands used by FTP are as follows (the brackets indicate an option):
1) [Crud][args) 1: In the local machine to perform interactive sh*ll, exit back to the FTP environment, columns such as:! ls*. Zip 2) $macro-amc][args to perform macro definition macro-name.
3) Accountlpassword]: Provides the additional password required to access system resources after successful login to the remote system.
4) Append Local-file[remote-file]: Appends the local file to the remote system host and uses the local filename if no remote system file name is specified.
5 ASCII: Using ASCII mode of transmission.
6 Bell: After each command completes, the computer rings-times
7 bin: Using binary file transfer mode
8) bye. Exit the FTP session process-
9 Case: When using Mget, convert the uppercase letters in the remote primary file name to lowercase
Cdremote dir: Access to the remote host directory.
One) cdup. into the parent directory of the remote host directory.
Chmodmodefile-name: Sets the access mode of the remote host file File-name to mode.
Columns such as: chmod777a. Out.
Close: Interrupts the FTP session with the remote server (corresponding to open).
CR: Converting a carriage return line to a back line when transferring a file using the Assc method
deleteremote-file-Delete remote host files:
) Debugldebug-value3:. Set the mode of debugging to display every command sent to the remote host.
For example: Debup3, if set to 0, means cancel Debug.
Dir[remote-dir][local-file]: Displays the remote host directory and stores the results in a local file Local-file:
) disconnection-. With close.
Formformat: Sets the file transfer mode to format, by default, by file mode.
Getremote-file[10cal-file]: Remote-file The remote host file to the local-file of the local hard drive.
Glob: Sets the file name extension for Mdelete,mget,mput, does not extend the file name by default, and the command line
-G parameter.
Hash: 1024 bytes per transmission, displaying a hash symbol (#).
) Help[cmd]: Displays the FTP internal command cmd's help information, such as. -helpget.
Idle[seconds]: Sets the remote server's hibernate timer to [seconds] seconds.
Image: Sets the binary transmission mode (same binary).
LCD[DIR]: Switches the local working directory to DIR.
Ls[remote-dir][local-file]: Displays the remote directory Remote-dir and stores the local text Local-fileo
Macdefmacro-name: Defines a macro that, when it encounters an empty row under Macdef, ends the macro definition.
Mdelete[remote-file]: Deletes a remote host file.
Mdirremote-fileslocal-file: Similar to the DLR, but can specify multiple remote files. ·
Columns such as mdir*. O. *. Zipoutfile.
Mgetremote-files: Transferring multiple remote files.
Mkdirdirname: Build a directory in a remote host.
) Misremote-filelocal-file. With nlist, but multiple file names can be specified.
Mode[modename]: Sets the file transfer mode to Modename, default to stream mode.
) Modtimefile-name. Displays the last modified time of the remote host file. ·
Mputlocal-file: Transfer multiple files to a remote host
Newerfile-name: If the file-name in the remote machine is modified more closely than the time of the file with the same name as the local hard disk, the file is retransmitted. ·
Nlist is remote di41local-file3: Displays a list of files for the remote host directory and stores it in the local hard drive Local-fileo
Nmap[npattem Outpattem] Sets the file name Mapping mechanism so that when a file is transferred, some
Characters convert to each other, such as: NMAPSL. S2. S3[$1,$2][$2,$3], the file A1 is transferred. A2. When A3, the filename becomes A1,
A20 This command is particularly useful for situations where a remote host is a non-UNIX machine o
Ntrans[inchars][outchars] Sets the translation mechanism for a file name character, such as NTRANSLR, the filename lli
will become RRR.
Openhost[port]: Establishes a specified FTP server connection, which specifies the connection port.
Passive: Enter passive transmission mode.
Prompt: Set up interactive prompts for multiple file transfers.
Proxy ftp-cmd: In a secondary control connection, an FTP command is executed that allows two FTP suits to be connected
Service to transfer files between two servers. The first FTP command must be open to establish a connection between two servers first.
Putlocal-file[remote-file]: Transfer local file Local-file to a remote host.
VWD: Displays the current working directory of the remote host.
) qmt-. With bye, exit the FTP session.
Quote Argl,arg2 ... : sends the parameter verbatim to the remote unloading server, for example: quote, Syst.
Recvremote-file[local-file): With Get.
Reget Remote-file][local-file]: similar to get, but if local-file exists, the transmission continues from the last transmission interrupt.
Rhelp[cmd-name]: Request help for a remote host.
Rstatus[file-name]: If no filename is specified, the status of the remote host is displayed, otherwise the file status is displayed.
) [Rename[from] [to