No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Fit AP V200R010C00 Command Reference

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
zip

zip

Function

The zip command compresses a file.

Format

zip source-filename destination-filename

Parameters

Parameter Description Value
source-filename Specifies the name of a source file to be compressed.

The value is a string of 1 to 64 case-sensitive characters without spaces in the [ drive ] [ path ] file name format.

In the preceding parameter, drive specifies the storage device name, and path specifies the directory and subdirectory.

You are advised to add : and / between the storage device name and directory. Characters ~, *, /, \, :, ', " cannot be used in the directory name.

destination-filename Specifies the name of a destination file that is compressed.

The value is a string of 1 to 64 case-sensitive characters without spaces in the [ drive ] [ path ] file name format.

In the preceding parameter, drive specifies the storage device name, and path specifies the directory and subdirectory.

You are advised to add : and / between the storage device name and directory. Characters ~, *, /, \, :, ', " cannot be used in the directory name.

Views

User view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

The following describes the drive name.

  • drive is the storage device and is named flash:.

The path can be an absolute path or relative path.
  • flash:/my/test/ is an absolute path.

  • selftest/ is related to the current working directory and indicates the selftest directory in the current working directory.

Precautions

  • If the destination file path is specified while the file name is not specified, the designation file name is the same as the source file name.

  • The source file persists after being compressed.

  • Directories cannot be compressed.

Example

# Compress file log.txt that is stored in the root directory and save it to the test directory as file log.zip.

<Huawei> dir
Directory of flash:/

  Idx  Attr     Size(Byte)  Date        Time(LMT)  FileName
    0  -rw-            155  Dec 02 2011 01:28:48   log.txt
    1  -rw-          9,870  Oct 01 2011 00:22:46   patch.pat
    2  drw-              -  Mar 22 2012 00:00:48   test
    3  -rw-            836  Dec 22 2011 16:55:46   rr.dat
...

1,927,220 KB total (1,130,464 KB free)
<Huawei> zip log.txt flash:/test/log.zip
<Huawei> cd test 
Zip flash:/log.txt flash:/test/log.zip? (y/n)[n]:y
100%  complete
Compressed file flash:/log.txt flash:/test/log.zip.
<Huawei> dir 
Directory of flash:/test/

  Idx  Attr     Size(Byte)  Date        Time(LMT)  FileName
    0  -rw-            836  Mar 20 2012 19:49:14   test
    1  -rw-            239  Mar 22 2012 20:57:38   test.txt
    2  -rw-          1,056  Dec 02 2011 01:28:48   log.txt
    3  -rw-            240  Mar 22 2012 21:23:46   log.zip

1,927,220 KB total (1,130,463 KB free)
Related Topics
Translation
Download
Updated: 2019-07-18

Document ID: EDOC1100064353

Views: 129856

Downloads: 103

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next