Rename; Reset Recycle-Bin - H3C S3100 Series Command Manual

Hide thumbs Also See for S3100 Series:
Table of Contents

Advertisement

<Sysname> pwd
unit1>flash:

rename

Syntax
rename fileurl-source fileurl-dest
View
User view
Parameter
fileurl-source: Original path name or file name of a file in the Flash memory.
fileurl-dest: Target path name or file name.
Description
Use the rename command to rename a file or a directory.
If the target file name or directory name is the same with any existing file name or directory name, you
will fail to perform the rename operation.
Example
# Rename the file named config.txt to config.bak.
<Sysname>rename config.txt config.bak
Rename unit1>flash:/config.txt to unit1>flash:/config.bak?[Y/N]:y
.
%Renamed file unit1>flash:/config.txt to unit1>flash:/config.bak.

reset recycle-bin

Syntax
reset recycle-bin [ file-url ] [ /force ]
View
User view
Parameter
file-url: Path name or file name of a file in the Flash memory. This argument supports the wildcard "*".
For example, *.txt means all the files with an extension of txt.
/force: Specifies not to prompt for confirmation before deleting files.
Description
Use the reset recycle-bin command to permanently delete the files in the recycle bin in the current
directory.
Use the reset recycle-bin file-url command to permanently delete the files in the recycle bin in the
specified directory.
By default, the file operation reminding mode is alert, meaning that when you clear the files in the
recycle bin on the local unit, the system will ask for your confirmation for each file you want to delete.
However, if you specify the /force keyword in the command, the system will not ask for your
confirmation.
1-11

Advertisement

Table of Contents
loading

Table of Contents