The cdup command changes the current working directory of an SSH user to its parent directory.
Usage Scenario
You can run the cdup command to change the current working directory to its parent directory.
Precautions
If the current working directory is the SFTP authorization directory, the command cannot change the current working directory.
# Change the current working directory to its parent directory.
<HUAWEI> system-view [HUAWEI] sftp 10.137.217.201 Please input the username:admin Trying 10.137.217.201 ... Press CTRL+K to abort Connected to 10.137.217.201 ... Enter password:
sftp-client> cd dhcp
Current directory is:
/dhcp
sftp-client> cdup
Current directory is:
/
sftp-client> cdup
Error: Failed to change the current directory.
sftp-client>