| Parameter | Description | Value |
|---|---|---|
local-filename |
Specifies the local file name. |
The value is a string of 1 to 64 characters. |
remote-filename |
Specifies the file name on the remote FTP server. |
The value is a string of 1 to 64 characters. |
If no file name on the remote server is specified, the uploaded file uses the same as that of the local file.
# Upload the local file temp.c to the remote FTP server and save it with the name as temp1.c.
<sysname> ftp 10.1.1.1 Trying 10.1.1.1... Press CTRL+K to abort Connected to 10.1.1.1. 220 FTP service ready. User (10.1.1.1: (none)):ftpuser 331 Password required for ftpuser Enter password: 230 User logged in. [ftp] put temp.c temp1.c 200 Port command okay. 150 Opening ASCII mode data connection for temp1.c. 226 Transfer complete. FTP: 4 byte (s) sent in 5.187 second (s) .77byte (s)/sec.