Extracting Files from an Archive/Compressed File on the Grid

On the Grid, there are two sets of system-wide tools for extracting files from an archive / compressed file. They are unzip and gunzip.

Unzip

May be used to extract from common archive formats such as ZIP and RAR

General usage:

To extract all contents to the current directory

unzip FILE

To extract all contents within subfolder of the archive

unzip FILE subfolder/*

To extract all contents within subfolder to a specific folder

unzip FILE subfolder/* -d DESTINATION

Documentation may be found here: https://linux.die.net/man/1/unzip

Gunzip

This is meant to be used on files ending with .gz or .z

General usage:

To extract a file and not save the original compressed file

gunzip FILE

To extract a file and keep both the compressed and decompressed file

gunzip –k FILE

To extract all files within a folder and subfolders

gunzip –r FOLDER

Documentation may be found here: https://linux.die.net/man/1/gunzip

If neither tool works on your archive / compressed file, then you will need to install software for your use. This is fairly straightforward. Please see our documentation for instructions: https://grid.rcs.hbs.org/running-older-versions-software