Do more with less: FTP use command detailed

  
                              

The FTP command is one of the most frequently used commands for Internet users. Whether you use FTP under DOS or UNIX operating systems, you will encounter a large number of FTP internal commands. Familiar and flexible application of FTP internal commands can greatly facilitate users and get twice the result with half the effort.

The command line format of FTP is: ftp -v -d -i -n -g [hostname], where

-v displays all response information of the remote server;

-n restricts automatic login of ftp, ie not used;

-i etrc file;

-d uses debug mode;

-g cancels global file name.

The internal commands used by ftp are as follows (brackets indicate optional):

1.![cmd[args]]: Execute the interactive shell in the local machine, exit returns to the ftp environment, Such as: !ls*.zip.

2.$ macro-ame[args]: Execute macro definition macro-name.

3.account[password]: Provides login to remote system successfully The supplemental password required to access system resources.

4.append local-file[remote-file]: Append local files to the remote system host. If no remote system file name is specified, the local file name is used.

5.ascii: Use the ascii type transmission method.

6.bell: The computer rings once after each command is executed.

7.bin: Use binary file transfer.

8.bye: Exit the ftp session process.

9.case: When using mget, convert the uppercase in the remote host file name to lowercase.

10.cd remote-dir: Enter the remote host directory.

11.cdup: Enter the parent directory of the remote host directory.

12.chmod mode file-name: Set the access mode of the remote host file file-name to mode, such as: chmod 777 a.out .

13.close: Interrupt the ftp session with the remote server (corresponding to open).

14.cr: When using ascii to transfer files, convert carriage return to line feed.

15.delete remote-file: Delete remote host files.

16.debug[debug-value]: Set the debug mode to display each command sent to the remote host, such as: deb up 3, if set to 0, cancel the debug.

17.dir[remote-dir][local-file]: Display the remote host directory and save the result to the local file local-file.

18.disconnection: Same as close.

19.form format: Set the file transfer mode to format, the default is file mode.

20.get remote-file[local-file]: Transfer the remote host's file remote-file to the local-file of the local hard disk.

Copyright © Windows knowledge All Rights Reserved