unzip

Overview

unzip will list, test, or extract files from a ZIP archive, commonly found on MS-DOS systems.

This version (made available via a modulefile – see below) fixes a problem with the system-wide version provided in CentOS 7.9 following a CSF upgrade in January 2021. You should use the modulefile version if you receive errors similar to the following when unzipping or verifying .zip files:

# The system-wide /usr/bin/unzip may generate the following error when extracting your files
error: invalid zip file with overlapped components (possible zip bomb)
 #
 # The modulefile version (see below) fixes this error.

Versions 6.0 is installed.

Restrictions on use

There are no access restrictions on the CSF.

Set up procedure

You must load the modulefile:

module load tools/gcc/unzip/6.0

Running the application

unzip may be used on the login node for small file decompressions. However please run the app in a batch job, or interactive session, if unzipping large files.

You may run unzip -h to get a list of command-line flags.

Serial batch job submission

To unzip a file as a batch job, create a jobscript as follows:

#!/bin/bash --login
#$ -cwd
module load tools/gcc/unzip/6.0
unzip filename.zip

Submit your job using

qsub jobscript

where jobscript is the name of your jobscript file.

Parallel batch job submission

Please consider using the pigz utility which is a parallel zipping and unzipping application.

Further info

Last modified on January 25, 2021 at 7:32 pm by George Leaver