< Home

mkdir (SFTP client view)

Function

The mkdir command creates a directory on the remote SFTP server.

Format

mkdir remote-directory

Parameters

Parameter Description Value
remote-directory Specifies the directory to be created. The value is a string of case-insensitive characters without spaces. The absolute path length ranges from 1 to 64, while the directory name length ranges from 1 to 15.

Views

SFTP client view

Default Level

3: Management level

Usage Guidelines

  • You can run the mkdir command to create a subdirectory in a specified directory, and the subdirectory name must be unique.

  • If no path is specified when you create a subdirectory, the subdirectory is created in the current directory.

  • The created directory is stored on the SFTP server.

  • After a directory is created, you can run the dir/ls (SFTP client view) command to view the directory.

The file system has a restriction on the number of files in the root directory. Therefore, if more than 50 files exist in the root directory, creating new files in this directory may fail.

Example

# Create a directory 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
Connected to 10.137.217.201 ...
Enter password:
sftp-client> mkdir ssh
Info: Succeeded in creating a directory.
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >