beautypg.com

Working with sftp files, Displaying help information – H3C Technologies H3C SecBlade LB Cards User Manual

Page 180

background image

169

Step Command

Remarks

8.

Delete one or more directories
from the SFTP server.

rmdir remote-path&<1-10>

Optional.

Working with SFTP files

SFTP file operations include:

Changing the name of a file

Downloading a file

Uploading a file

Displaying a list of the files

Deleting a file

To work with SFTP files:

Step Command

Remarks

1.

Enter SFTP client view.

For more information, see
"

Establishing a connection to an

SFTP server

."

N/A

2.

Change the name of a file on
the SFTP server.

rename old-name new-name Optional.

3.

Download a file from the

remote server and save it
locally.

get remote-file [ local-file ] Optional.

4.

Upload a local file to the SFTP

server.

put local-file [ remote-file ]

Optional.

5.

Display the files under a

directory.

dir [ -a | -l ] [ remote-path ]

ls [ -a | -l ] [ remote-path ]

Optional.
The dir command functions as the
ls command.

6.

Delete one or more directories
from the SFTP server.

delete remote-file&<1-10>

remove remote-file&<1-10>

Optional.
The delete command functions as

the remove command.

Displaying help information

Use the help command to display all commands or the help information of an SFTP client command,

including the command format and parameters.
To display all commands or the help information of an SFTP client command:

Step Command

1.

Enter SFTP client view.

For more information, see "

Establishing a connection to an

SFTP server

."

2.

Display all commands or the help

information of an SFTP client command.

help [ all | command-name ]

This manual is related to the following products: