bsdtar.1 -zxf /path/to/archive.tar.gz dir/subdir --directory $SLURM_TMPDIR
manipulate tape archives
-z, --gunzip, --gzip
        (c mode only) Compress the resulting archive with gzip(1).  In extract or list modes, this option
        is ignored.  Note that, unlike other tar implementations, this implementation recognizes gzip
        compression automatically when reading archives.
-f file, --file file
        Read the archive from or write the archive to the specified file.  The filename can be - for
        standard input or standard output.  The default varies by system; on FreeBSD, the default is
        /dev/sa0; on Linux, the default is /dev/st0.
source manpages: bsdtar