After logging in to the SFTP server, you can run the pwd command to display the SFTP client's working directory on the remote SFTP server.
If the displayed working directory is incorrect, you can run the cd command to change the SFTP client's working directory on the remote SFTP server.
# Display the SFTP client's working directory on the remote 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 Connected to 10.137.217.201 ... Enter password:
sftp-client> pwd / sftp-client> cd test Current directory is: /test sftp-client> pwd /test