No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Fit AP V200R010C00 Command Reference

Rate and give feedback :
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
rename (SFTP client view)

rename (SFTP client view)

Function

The rename command renames a file or directory stored on the SFTP server.

Format

rename old-name new-name

Parameters

Parameter Description Value
old-name

Specifies the name of a file or directory.

The value is a string of 1 to 64 case-insensitive characters without spaces.
new-name

Specifies the new name of the file or directory.

The value is a string of 1 to 64 case-insensitive characters without spaces.

Views

SFTP client view

Default Level

3: Management level

Usage Guidelines

You can run the rename command to rename a file or directory.

Example

# Rename the directory yourtest on the SFTP server.

<Huawei> system-view
[Huawei] sftp 10.137.217.201
Please input the username:admin
Trying 10.137.217.201 ...
Press CTRL+K to abort
Enter password:
sftp-client> rename test/yourtest test/test
Warning: Rename /test/yourtest to /test/test? [y/n][n]:y
Info: Succeeded in renaming file.
sftp-client> cd test
Current directory is:
/test
sftp-client> dir
drwxrwxrwx   1 noone    nogroup         0 Mar 29 22:44 .
drwxrwxrwx   1 noone    nogroup         0 Mar 29 22:39 ..
drwxrwxrwx   1 noone    nogroup         0 Mar 24 00:04 test
-rwxrwxrwx   1 noone    nogroup      5736 Mar 24 18:38 backup.txt
Translation
Download
Updated: 2019-07-18

Document ID: EDOC1100064353

Views: 90144

Downloads: 61

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next