< Home

cdup (SFTP client view)

Function

The cdup command switches the current working directory of users to an upper-level directory.

Format

cdup

Parameters

None

Views

SFTP client view

Default Level

2: Configuration level

Usage Guidelines

If the current authorized directory of the SFTP service for the SSH user is the uppermost directory, the system will indicate that you are unable to heighten the current directory.

Example

# Switch the current directory of users to the upper-level directory.

<sysname> system-view
[sysname] sftp 10.1.1.1 
Please input the username:client001
Trying 10.1.1.1 ...
Press CTRL+K to abort
Enter password:   
sftp-client> cdup
Error: Failed to change the current directory.
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >