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

Fat AP and Cloud 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).
unzip

unzip

Function

The unzip command decompresses a file.

Format

unzip source-filename destination-filename

Parameters

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

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 decompressed.

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

You can decompress files, especially log files that are stored on the storage device and run the more command to query the file.

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 decompressed.

  • The compressed file must be a .zip file. If a file to be decompressed is not a zip file, the system displays an error message during decompression.

  • The source file must be a single file. If you attempt to decompress a directory or multiple files, the decompression cannot succeed.

Example

# Decompress log file syslogfile-2012-02-27-17-47-50.zip that are stored in the syslogfile directory and save it to the root directory as file log.txt.

<Huawei> pwd
flash:/syslogfile
<Huawei> unzip syslogfile-2012-02-27-17-47-50.zip flash:/log.txt
Extract flash:/syslogfile/syslogfile-2012-02-27-17-47-50.zip to flash:/log.txt?(y/n)[n]:y
100%  complete
Decompressed file flash:/syslogfile/syslogfile-2012-02-27-17-47-50.zip  flash
:/log.txt. 
Translation
Download
Updated: 2019-11-21

Document ID: EDOC1100064352

Views: 194936

Downloads: 118

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