Gzip - H3C S5830V2 Command Reference Manual

Switch series fundamentals
Hide thumbs Also See for S5830V2:
Table of Contents

Advertisement

Parameters
filename: Specifies the name of the file to be decompressed. This argument must have .gz as the
extension.
Usage guidelines
This command deletes the specified file after decompressing it.
Examples
# Decompress the file system.bin.gz:
Before decompressing the file, you can display files whose names start with the system. string.
1.
<Sysname> dir system.*
Directory of flash:
1 -rw-
472972 KB total (472840 KB free)
Decompress the file system.bin.gz.
2.
<Sysname> gunzip system.bin.gz
Decompressing file flash:/system.bin.gz... Done.
3.
Verify the decompress operation.
<Sysname> dir system.*
Directory of flash:
1 -rw-
472972 KB total (472844 KB free)

gzip

Use gzip to compress a file.
Syntax
gzip filename
Views
User view
Predefined user roles
network-admin
Parameters
filename: Specifies the name of the file to be compressed. The compressed file will be saved to file
filename.gz.
Usage guidelines
This command deletes the specified file after compressing it.
Examples
# Compress the file system.bin:
Before compressing the file, you can display files whose names start with system.
1.
<Sysname> dir system.*
Directory of flash:
1 -rw-
472972 KB total (472844 KB free)
Compress the file system.bin.
2.
20 Jun 14 2012 10:18:53
0 May 30 2012 11:42:25
0 May 30 2012 11:42:24
123
system.bin.gz
system.bin
system.bin

Advertisement

Table of Contents
loading

This manual is also suitable for:

S5820v2

Table of Contents