144
1048576 KB total (472844 KB free)
gzip
Use gzip to compress a file.
Syntax
gzip file
Views
User view
Predefined user roles
network-admin
Parameters
file: Specifies the name of the file to be compressed.
Usage guidelines
This command saves the compressed file to the file.gz file and deletes the source file.
Examples
# Compress file system.bin:
1. Before compressing the file, you can display files whose names start with the system. string.
<Sysname> dir system.*
Directory of flash:
1 -rw- 0 May 30 2012 11:42:24 system.bin
1048576 KB total (472844 KB free)
2. Compress the file system.bin.
<Sysname> gzip system.bin
Compressing file flash:/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
1048576 KB total (472840 KB free)
md5sum
Use md5sum to use the MD5 algorithm to calculate the digest of a file.
Syntax
md5sum file
Views
User view