#!/bin/sh
# check and list the top folders of a give tar file
# Or simply use archivemount
# https://linuxaria.com/howto/how-to-mounts-an-archive-for-access-as-a-file-system
# tar_archive_path as /path/to/archive.tar.gz
tar_archive_path=$1
mkdir -p /tmp/tartest
rm -r /tmp/tartest/*
tar -zxvf $tar_archive_path -C /tmp/tartest
ls -a /tmp/tartest