Use the unzip command to expand the contents of a ZIP file to the local file system. Any file that is zipped using the store, deflate, or zip64 compression methods can be unzipped. An example is the SR OS software image available from the Nokia customer support portal.
The source ZIP file location can be a locally installed solid-state storage device or a remote FTP or TFTP server.
The create-destination keyword ensures that any non-existent directory structure that is explicitly entered as the destination file URL is created as part of the unzip operation. This parameter is required to create new directories.
The destination for the unzipped files and directories must be a locally installed solid-state storage device in the active CPM.
ZIP filenames, or the filenames of any contained files, must not include special characters.
To unzip files, use the following CLI syntax:
file>
— unzip source-file-url [dest-file-url] list
— unzip source-file-url dest-file-url [create-destination] [force]
The following example displays the unzip command syntax:
A:test# file unzip demo.zip cf3:/mynewfolder/mynewsubfolder create-destination force
Verifying cf3:\demo.zip .. ... OK
Unzipping cf3:\demo.zip to cf3:\mynewfolder\mynewsubfolder\ .. .Processing demodir/
Processing demodir/myfile1.txt
Processing demodir/myfile2.txt
Processing demodir/demosubdir/
Processing demodir/demosubdir/myfile3.txt
Writing...OK