title: using tar how do i uncompress - Perplexica
source: http://localhost:3000/
author:
published:
created: 2025-08-29
description: Chat with the internet, chat with Perplexica.
tags:
- Programming
[
How to Compress and Extract Files Using the tar Command on Linux
howtogeek
1
](https://www.howtogeek.com/248780/how-to-compress-and-extract-files-using-the-tar-command-on-linux/)[
Untar Tar.gz - Linux Tar Command - HowTo: Extract Tar File
shellhacks
2
How to untar a tar file or gzip-bz2 tar file | How To Wiki | Fandom
how-to
3
To uncompress the pinokio.tar.gz
file to the pinokio-evo
directory using the tar
command, you can use the following command in a Linux terminal 101314. The command extracts the contents of the compressed archive directly into the specified destination directory 1013.
tar -xzvf /media/garyrust/DISK01/pinokio.tar.gz -C /media/garyrust/pinokio-evo
Let's break down this command:
tar
: This is the command itself, invoking the tar
archiving utility 1013.-x
: This option tells tar
to extract files from an archive 1013.-z
: This option tells tar
to decompress the archive using gzip 1013.-v
: This option enables verbose mode, displaying the files being extracted 1013. This is optional but helpful for monitoring the process.-f
: This option specifies the archive file name 1013./media/garyrust/DISK01/pinokio.tar.gz
: This is the path to the compressed archive file you want to extract 1013.-C
: This option specifies the destination directory where the extracted files will be placed 1013./media/garyrust/pinokio-evo
: This is the path to the directory where you want to extract the contents of the archive 1013.Important Considerations:
/media/garyrust/pinokio-evo
directory exists before running the command 10. If it doesn's exist, you'll need to create it using the mkdir
command: mkdir /media/garyrust/pinokio-evo
10.sudo
before the command, but be cautious when using sudo
10.tar
command will overwrite existing files in the destination directory if they have the same names as files in the archive 10. Be mindful of this to avoid data loss 10.In summary, the tar -xzvf /media/garyrust/DISK01/pinokio.tar.gz -C /media/garyrust/pinokio-evo
command provides a straightforward and effective way to uncompress the specified tar.gz
archive to the desired destination directory 10.