< Home

put (FTP client view)

Function

The put command uploads a local file to the remote FTP server.

Format

put local-filename [ remote-filename ]

Parameters

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.

Views

FTP client view

Default Level

3: Management level

Usage Guidelines

If no file name on the remote server is specified, the uploaded file uses the same as that of the local file.

Example

# 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.
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >