mkdir

Function

The mkdir command creates a new directory in the remote machine.

Format

mkdir remote-directory

Parameters

Parameter Description Value
remote-directory

Specifies the name of the destination directory.

The value is a string of 1 to 128 case-sensitive characters, spaces not supported.

Views

FTP client view

Default Level

3: Management level

Task Name and Operations

Task Name Operations
ftp-client execute

Usage Guidelines

Usage Scenario

By executing the mkdir command creates a subdirectory. The new remote directory name cannot have the same name as any other subdirectory or file in the specified directory.

Prerequisites

You can create a new directory in remote machine only if you have access in the remote system.

Configuration Impact

After a subdirectory is created, either of the following situations may occur:

  • If no path is specified, a subdirectory is created in the current directory.
  • If a path is specified, a subdirectory is created in either an absolute path or a relative path.

Example

# Create a new directory named new_folder.
<HUAWEI> ftp 10.18.26.133
[ftp] mkdir new_folder
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >