123
1.
Before compressing the file, you can display files whose names start with
system
.
<Sysname> dir system.*
Directory of flash:
1 -rw- 0 May 30 2012 11:42:24 system.bin
472972 KB total (472844 KB free)
2.
Compress the file
system.bin
.
<Sysname> gzip system.bin
Compressing file system.bin... Done.
3.
Verify the compress operation.
<Sysname> dir system.*
Directory of flash:
1 -rw- 20 Jun 14 2012 10:18:53 system.bin.gz
472972 KB total (472840 KB free)
md5sum
Use
md5sum
to use the MD5 algorithm to calculate the digest of a file.
Syntax
md5sum
file
-
url
Views
User view
Predefined user roles
network-admin
network-operator
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 HP website to
identify whether the file has been tampered with.
Examples
# Use the MD5 algorithm to calculate the digest of file
system.bin
.
<Sysname> md5sum system.bin
MD5 digest:
4f22b6190d151a167105df61c35f0917
Related commands
sha256sum
mkdir
Use
mkdir
to create a folder in the current directory.