The tar command on Linux is used to create and extract TAR archive files. Run "tar -czvf archive-name.tar.gz /path/to/file” in the Terminal to compress a file or ...
The next step is to use a bash case statement to call the appropriate extraction command for the archive depending on its name. For some of these file types (e.g., .bz2), other commands than tar would ...