IT Ninja Turtles ftp commands in windows, Ninja Turtles commands

Source: Internet
Author: User
Tags ftp commands

IT Ninja Turtles ftp commands in windows, Ninja Turtles commands

FTP Server: home4u.at.china.com

User: yepanghuang

Password: abc123

Open the Start Menu of Windows, run the "run" command, enter ftp in the dialog box, and press the "OK" button to switch to the DOS window. a command prompt is displayed.

Ftp>

Run the following command to connect to the FTP server:

Ftp> open home4u.at.china.com (Press ENTER)

Wait a moment, and the screen prompts that the connection is successful:

Ftp> connected to home4u.china.com

Next, the server asks for the user name and password, and enters yepanghuang and abc123 respectively. You can complete the authentication.

Upload a file. For example, to upload a: \ index.html to the root directory of the server, you can type:

Ftp> put a: \ index.html (Press ENTER)

When the screen prompts that you have completed the transmission, you can enter the relevant command to view:

Ftp> dir (Press ENTER)

Download. If you want to upload all .jpg files in the server \ imagesdirectory to the local machine, you can enter the following command:

Ftp> cd images (Press ENTER) [Note: Go to the \ images Directory]

Ftp> mget *. jpg

After uploading and downloading are complete, type bye to interrupt the connection.

Ftp> bye (Press ENTER)

To sum up the commonly used FTP commands:

1. open: connect to the server;

2. send (put): upload a file;

3. get: download an object;

4. mget: Download multiple files;

5. cd: Switch the directory;

6. dir: view the files in the current directory;

7. del: delete an object;

8. bye: the connection to the server is interrupted.

For more information, enter

Ftp> help (Press ENTER)

View the command set:

Ascii: sets File Transfer in ASCII mode (default)

Bell: an alarm is triggered every time a file is transferred.

Binary: sets File Transfer in binary mode

Bye: Terminate the FTP process on the host and exit FTP management.

Case: when it is ON, use the MGET command to copy the file name to the local machine, all converted to lowercase letters

Cd: The same as the unix cd command

Cdup: Back to the upper-level directory

Chmod: Change the File Permission of the remote host

Close: Terminate the remote FTP process and return to the FTP command status. All macro definitions are deleted.

Delete: delete files from the remote host.

Dir [remote-directory] [local-file]: List Files in the directory of the current remote host. If there is a local file, write the result to the local file.

Get [remote-file] [local-file]: Transfer from remote host to local host

Help [command]: Explanation of the output command

LCD: changes the working directory of the current local host. If it is set to default, it is transferred to the HOME Directory of the current user.

Ls [remote-directory] [local-file]: Same as DIR

Macdef: defines macro commands

Mdelete [remote-files]: deletes a batch of files.

Mget [remote-files]: receives a batch of files from the remote host to the local host.

Mkdir directory-name: create a directory in the remote host

Mput local-files: transfers a batch of files from the local host to the remote host.

Open host [port]: reestablishes a new connection.

Prompt: Interactive prompt Mode

Put local-file [remote-file]: transfers a local file to a remote host.

Pwd: list the current remote host directory

Quit: Same as BYE

Recv remote-file [local-file]: Same as GET

Rename [from] [to]: Change the file name in the remote host.

Rmdir directory-name: Delete the directory in the remote host

Send local-file [remote-file]: Same as PUT

Status: displays the status of the current FTP

System: displays the remote host system type.


Who can tell me in detail how to use PUT and GET of FTP commands in DOS?

There are some built-in Applets in Windows 98/2000, and shortcuts are not set in the Start menu, you need to enter program file names in the run dialog box or MS-DOS mode to execute them. Most cainiao users often ignore their existence, but they are very practical and can implement many network and system auxiliary functions.

These programs are primarily tools for network, system configuration, and diagnostics. These include Ping, Tracert, FTP, Drwatson, Regedit, Winipcfg, Winpopup, MSConfig, and Winfile (Note: The last four commands are invalid in Windows2000. The Ping, Tracert, and FTP commands can be used only after the TCP/IP protocol is installed. The following describes the usage of these network commands. We know more or less about these commands. Here are some useful network commands.

1. Ping the network connectivity test command

The Ping Command sends an Internet Control Information Protocol (ICMP) response packet to the computer and listens to the response packet to verify the connection with the remote computer or local computer. For each sent message, Ping can wait at most one second and print the number of sent and received packets. Then, compare each received message and sent message to verify its validity. By default, four response packets are sent. Each packet contains 32 bytes of data (a periodic uppercase letter sequence ).

Ping Command Format:

Ping [-t] [-a] [-n count] [-l size] [-f] [-I TTL] [-v TOS] [-r count] [- s count] [[-j host-list] | [-k host-list] [-w timeout] destination-list

Destination-list is the address of the target computer. Among these parameters of the Ping command,-t is mainly used (continuously sending messages to the specified computer, you can press Ctrl + Break to view the statistics or continue running, -a (resolve the IP address to the computer name);-n count (send a response packet specified by count) and-l size (send response packets with the specified data size ). For example, Ping the home address of 263 and enter C: \?> In MS-DOS Mode Ping www.263.net.

Ping commands are often used to diagnose TCP/IP networks. Send a message to the target computer to send it back. If the returned message is consistent with the sent message, your Ping command is successful. If no response message is received within the specified time, Ping the computer and the "Request time out" message is displayed. By analyzing the Ping data, you can determine whether the computer is on, whether there is a configuration or physical fault in the network, or how long it takes for the packet to be sent and returned. You can also use the Ping utility to test the computer name and IP address. If you can successfully verify the IP address but cannot verify the computer name, the name resolution is faulty.

Of course, the shorter the message return time, the fewer requests appear in time out, which means the connection with this computer is stable and fast.

2. Route analysis diagnostics Tracert

The diagnostic utility determines the route to the destination by sending ICMP response packets with different survival times to the destination. That is to say, the Tracert command can be used to track the path from one computer to another. For example, when you are surfing the internet, you want to know how to go from your computer to the 263 Main... the rest of the full text>

Windows command line does not support Passive ftp. How does one regularly upload files to the FTP server by writing windows batch processing?

Modifying ftp to a standard server will not solve the problem.

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.