Here, the -z flag indicates you want to work with the compressed file by gzip and when paired with the -x, it will extract the given file.įor example, here, I have untared the file: tar -xzvf How to untar. ![]() tgz files, all you need to do is add the -z flag to the previous command as shown: tar -xzvf tgz extension when you used the gzip command over the existing tar file or used the -z option while creating the tar file.Īnd to untar. Similarly, if you want to extract the file somewhere else, you'd have to use the -C flag and provide the path to the tar command as shown: tar -xvfC File.tar -C /path/to/extract How to untar.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |