< Home

ls (FTP client view)

Function

The ls command queries a specified file and saves the results to the specified file.

Format

ls [ remote-filename [ local-filename ] ]

Parameters

Parameter Description Value

remote-filename

Specifies the name of the queried remote file.

The name is a string of 1 to 64 characters.

local-filename

Specifies the name of the saved local file.

The name is a string of 1 to 64 characters.

Views

FTP client view

Default Level

3: Management level

Usage Guidelines

By default, all the files are displayed if you do not specify any parameters.

Example

# Query temp.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] ls temp.c
200 Port command okay.
150 Opening ASCII mode data connection for temp.c.
temp.c
226 Transfer complete.
FTP: 11 byte(s) received in 0.090 second(s) 122.22byte(s)/sec.
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >