G Commands
This chapter describes the Cisco Nexus 1000V commands that begin with the letter G.
gunzip
To uncompress a compressed file, use the gunzip command.
gunzip filename
Syntax Description
filename |
File name. The name is alphanumeric, case-sensitive, has a maximum of 64 characters, and must have the extension.gz. |
Command Modes
Any
network-admin
Command History
|
|
5.2(1)SK1(1.1) |
This command was introduced. |
Usage Guidelines
The compressed filename must have the.gz extension.
You do not have to enter the.gz extension as part of the filename.
The Cisco NX-OS software uses Lempel-Ziv 1977 (LZ77) coding for compression.
Examples
This example shows how to uncompress a compressed file:
n1000v# gunzip bootflash:sh-logging.gz
19 May 21 14:44:15 2013.ovfconfigured
77824 May 23 19:32:20 2013 accounting.log
4096 May 21 14:43:04 2013 core/
4096 May 21 14:43:04 2013 log/
16384 May 21 14:42:28 2013 lost+found/
456 May 21 14:51:42 2013 mts.log
31235584 May 21 14:42:38 2013 n1000vh-dk9-kickstart.5.2.1.SM1.5.0.357.bin
90078471 May 21 14:42:58 2013 n1000vh-dk9.5.2.1.SM1.5.0.357.bin
25975 May 23 19:27:23 2013 sh-logging
4096 May 21 14:43:23 2013 vdc_2/
4096 May 21 14:43:23 2013 vdc_3/
4096 May 21 14:43:23 2013 vdc_4/
14816014 May 21 14:43:01 2013 vsmhv-pa.2.0.0.14.bin
These examples show how to compress a file:
n1000v# gzip run_cnfg.cfg
19 May 21 14:44:15 2013.ovfconfigured
77824 May 23 19:32:20 2013 accounting.log
4096 May 21 14:43:04 2013 core/
4096 May 21 14:43:04 2013 log/
16384 May 21 14:42:28 2013 lost+found/
456 May 21 14:51:42 2013 mts.log
31235584 May 21 14:42:38 2013 n1000vh-dk9-kickstart.5.2.1.SM1.5.0.357.bin
90078471 May 21 14:42:58 2013 n1000vh-dk9.5.2.1.SM1.5.0.357.bin
25975 May 23 19:27:23 2013 sh-logging
4096 May 21 14:43:23 2013 vdc_2/
4096 May 21 14:43:23 2013 vdc_3/
4096 May 21 14:43:23 2013 vdc_4/
14816014 May 21 14:43:01 2013 vsmhv-pa.2.0.0.14.bin
Usage for bootflash://sup-local
n1000v# gzip bootflash:sh-logging
19 May 21 14:44:15 2013.ovfconfigured
77824 May 23 19:33:30 2013 accounting.log
4096 May 21 14:43:04 2013 core/
4096 May 21 14:43:04 2013 log/
16384 May 21 14:42:28 2013 lost+found/
456 May 21 14:51:42 2013 mts.log
31235584 May 21 14:42:38 2013 n1000vh-dk9-kickstart.5.2.1.SM1.5.0.357.bin
90078471 May 21 14:42:58 2013 n1000vh-dk9.5.2.1.SM1.5.0.357.bin
3699 May 23 19:27:23 2013 sh-logging.gz
4096 May 21 14:43:23 2013 vdc_2/
4096 May 21 14:43:23 2013 vdc_3/
4096 May 21 14:43:23 2013 vdc_4/
14816014 May 21 14:43:01 2013 vsmhv-pa.2.0.0.14.bin
Related Commands
|
|
dir |
Displays the directory contents. |
gzip |
Compresses a file. |
gzip
To compress a file, use the gzip command.
gzip filename
Syntax Description
filename |
File name. The name is alphanumeric, case-sensitive and can be up to 28 characters. |
Command Modes
Any
network-admin
Command History
|
|
5.2(1)SK1(1.1) |
This command was introduced. |
Usage Guidelines
After you use this command, the file is replaced with the compressed filename that has the.gz extension.
The Cisco Nexus 1000V software uses Lempel-Ziv 1977 (LZ77) coding for compression.
Examples
This example shows how to compress a file:
n1000v# gzip run_cnfg.cfg
Related Commands
|
|
dir |
Displays the directory contents. |
gunzip |
Uncompresses a compressed file. |