< Home

mkdir (FTP client view)

Function

The mkdir command creates a directory on the remote FTP 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

FTP 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 FTP server.

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 test on the remote FTP server.

<HUAWEI> ftp 172.16.104.110
Trying 172.16.104.110 ...
Press CTRL+K to abort
Connected to 172.16.104.110.
220 FTP service ready.
User(172.16.104.110:(none)):huawei
331 Password required for huawei
Enter password:
230 User logged in.
[ftp] mkdir test
257 "test" new directory created.
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >