The documentation set for this product strives to use bias-free language. For the purposes of this documentation set, bias-free is defined as language that does not imply discrimination based on age, disability, gender, racial identity, ethnic identity, sexual orientation, socioeconomic status, and intersectionality. Exceptions may be present in the documentation due to language that is hardcoded in the user interfaces of the product software, language used based on RFP documentation, or language that is used by a referenced third-party product. Learn more about how Cisco is using Inclusive Language.
This chapter describes the Cisco Nexus 1000V commands that begin with the letter G.
To uncompress a compressed file, use the gunzip command.
gunzip filename
filename |
File name. The name is alphanumeric, case-sensitive, has a maximum of 64 characters, and must have the extension .gz. |
None
Any
network-admin
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.
This example shows how to uncompress a compressed file:
n1000v# gunzip bootflash:sh-logging.gz
n1000v# dir bootflash:
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
n1000v# dir bootflash:
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
291319808 bytes used
2096951296 bytes free
2388271104 bytes total
n1000v#
n1000v# gzip bootflash:sh-logging
n1000v#
n1000v# dir
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
|
|
---|---|
dir |
Displays the directory contents. |
gzip |
Compresses a file. |
To compress a file, use the gzip command.
gzip filename
filename |
File name. The name is alphanumeric, case-sensitive and can be up to 28 characters. |
None
Any
network-admin
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.
This example shows how to compress a file:
n1000v# gzip run_cnfg.cfg
|
|
---|---|
dir |
Displays the directory contents. |
gunzip |
Uncompresses a compressed file. |