135
Usage guidelines
To remove a directory, you must delete all files and subfolders in the directory permanently or move
them to the recycle bin. If you move them to the recycle bin, executing the
rmdir
command
permanently deletes them.
Examples
# Remove the
subtest
folder.
<Sysname>rmdir subtest/
Remove directory flash:/test/subtest and the files in the recycle-bin under this directory
will be deleted permanently. Continue?[Y/N]:y
Removing directory flash:/test/subtest... Done.
sha256sum
Use
sha256sum
to use the SHA-256 algorithm to calculate the digest of a file.
Syntax
sha256sum
file
-
url
Views
User view
Predefined user roles
network-admin
mdc-admin
Parameters
file
-
url
: Specifies the name of a file.
Usage guidelines
The digest can be used to verify the integrity of the file. For example, you can use this command to
calculate the digest of a software image file and compare it with that provided on the Hewlett Packard
Enterprise website to identify whether the file has been tampered with.
Examples
# Use the SHA-256 algorithm to calculate the digest of file
system.bin
.
<Sysname> sha256sum system.bin
SHA256 digest
:
0851e0139f2770e87d01ee8c2995ca9e59a8f5f4062e99af14b141b1a36ca152
Related commands
md5sum
tar create
Use
tar create
to archive files and folders.
Syntax
tar create
[
gz
]
archive-file
fileurl
-
dest
[
verbose
]
source
fileurl
-
source-list
&<1-5>
Views
User view