The ls command lists all the directories and files in the present working directory of remote machine.
Parameter | Description | Value |
---|---|---|
remote-directory |
Specifies the directory name in the remote machine. |
Remote directory name is a string data type. The string length range is from 1 to 255 characters. |
local-filename |
Specifies the local file to be saved in the directory of remote machine. |
Local file name is a string data type. The string length range is from 1 to 255 characters. |
<HUAWEI> system-view [~HUAWEI] sftp 1.1.1.1 Trying 1.1.1.1 ... Press CTRL+K to abort Connected to 1.1.1.1 ... Please input the username: sftp sftp-client> ls
<HUAWEI> system-view [~HUAWEI] sftp 1.1.1.1 Trying 1.1.1.1 ... Press CTRL+K to abort Connected to 1.1.1.1 ... Please input the username: sftp sftp-client> ls new_folder
<HUAWEI> system-view [~HUAWEI] sftp 1.1.1.1 Trying 1.1.1.1 ... Press CTRL+K to abort Connected to 1.1.1.1 ... Please input the username: sftp sftp-client> ls new_folder output.txt