< Home

move

Function

The move command moves a file.

Format

move source-filename destination-filename

Parameters

Parameter Description Value
source-filename Specifies the source file name. The value is a string of 1 to 160 characters in the format of [ drive ] [ path ] [ file-name ].
destination-filename Specifies the destination file name. The value is a string of 1 to 160 characters.

Views

User view

Default Level

3: Management level

Usage Guidelines

If the destination file name is the same as the name of an existing directory, the source file is moved to the specified directory. The name of the file that is newly generated in this directory is the same as the source file name.

If the destination file name is the same as the name of an existing file, a prompt whether the existing file should be overwritten is displayed.

This command cannot be used to move files between storage devices.

Example

# Move the sample.txt file from hda1:/test/sample.txt to hda1:/sample.txt

<sysname> move hda1:/test/sample.txt hda1:/sample.txt
%Moved file hda1:/test/sample.txt to hda1:/sample.txt.
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >