Deleting/restoring a file, Emptying the recycle bin, Computing the digest of a file – H3C Technologies H3C S12500 Series Switches User Manual

Page 101

Advertising
background image

89

Task Command

Move a file.

move fileurl-source fileurl-dest

Deleting/restoring a file

You can delete a file permanently or just move it to the recycle bin. A file moved to the recycle bin can

be restored, but a permanently deleted file cannot.
A file in the recycle bin occupies storage space. To release the occupied space, execute the reset

recycle-bin command in the directory that holds the file. To save storage space, periodically empty the
recycle bin with the reset recycle-bin command.
Perform this task in user view:

Task Command

Delete a file by moving it to the recycle bin.

delete file-url

Restore a file from the recycle bin.

undelete file-url

Delete a file permanently.

delete /unreserved file-url

Task Command

Move a file to the recycle bin or delete it permanently. delete [ /unreserved ] file-url

Emptying the recycle bin

Step Command

Remarks

1.

Enter the original working
directory of the file to be

deleted.

cd { directory | .. | / }

Skip this step if the original
directory of the file is the current
working directory.
Available in user view.

2.

Empty the recycle bin.

reset recycle-bin [ /force ]

Available in user view.

Computing the digest of a file

The digest of a file can be used to verify the integrity of the file. For example, you can compute the digest

of the software image file of a device, and compare the digest with that on the website of the device
vendor to verify whether the file is valid.
To compute the digest of a file, perform the following command in user view:

Task Command

Compute the digest of a file.

crypto-digest sha256 file file-url

Advertising