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 a valid username or "anonmous"):
PASSWORD: (Enter the legal password, if the "anonmous" way to log in, generally do not use a password):
First section FTP command basics
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
[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;
[CWD] 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).
RETR STOR
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: Perform interactive shell,exit in the local machine 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:
[Dele] ) 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, which does not extend the file name by default, and the-G parameter of the command line.
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.
[MKD] ) 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 the list of files for the remote host directory and stores the Local-fileo on the local hard drive [
NLST] Nmap[npattem Outpattem] Sets the file name mapping mechanism so that some characters in the file are converted to each other when the file is transferred, such as: NMAPSL. S2. S3[,][,], the file A1 is transferred. A2. When A3, the file name changes to a1,a20 the command is especially useful for a remote host that is not a UNIX machine o
Ntrans[inchars[outchars]] Sets the translation mechanism for a file name character, such as NTRANSLR, then the filename lli becomes RRR.
Openhost[port]: Establishes a specified FTP server connection, which specifies the connection port.
Passive: Enter passive transmission mode.
[PASV] 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 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.
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]: Change the remote host file name.
[RNFR] [Rnto] Reset: Clears the answer queue.
[rest] Restart marker: From the specified flag marker, restart get or put, such as: Restartl30.
Rmdirdir-name: Deletes the remote host directory.
[RMD] Mnique: Set file name unique store, if the file exists, then add suffix to the original file. 1,. 2 and other
) Send Local-file[remote-file): same put
SendPort: Sets the use of the port command.
Siteargl,arg2 ... : sends the parameter as a site command to a remote dismount host verbatim.
Sizefile-name: Displays the remote host file size, such as: Slteidle7200.
[Size] ) Stares:. Displays the current FTP status. ·
Struct[struct-name]: Sets the file transfer structure to struct-name, using the stream structure by default.
Suniclue: Sets the remote host file name store to be unique (corresponds to the Mnique).
System: Displays the operating system type of the remote host.
Tenex: Set file: Transport type to the desired type of Tenex machine
TICK: Set byte counter for transmission
Trace: Set package tracking.
Type[type-name): Set file Transfer Type to Type-name, default to ASCII,
For example: typebinary, set binary transmission mode.
[Type I] [Type a] Umask[newmask): Sets the default umask for the remote server to Newmask. For example: Umask 3.
User User-name [Passwordⅱaccount]: to the remote host to indicate their identity, require a password, you must enter a password, such as: Useranonymousmy@email.
[user] [pass] Verbose: With the-v parameter of the command line, which is set to report in detail, all responses to the FTP server will be displayed to the user, with the default on.
73)? [cmd]: With help.
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.