| Parameter | Description | Value |
|---|---|---|
remote-filename |
Specifies the name of the queried file. |
The value is a string of 1 to 64 characters. |
local-filename |
Specifies the name of the saved local file. |
The value is a string of 1 to 64 characters. |
Using the command, you can view the file attributes and save the results to another file on client.
# Query the file temp.c and save the query result in the file temp1.
<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] dir temp.c temp1 200 Port command okay. 150 Opening ASCII mode data connection for temp.c. 226 Transfer complete. FTP: 66 byte(s) received in 8.447 second(s) 7.81byte(s)/sec. [ftp] quit 221 Server closing. <sysname> more temp1 -rwxrwxrwx 1 noone nogroup 3929 Apr 27 18:13 temp.c