Untar a File in Linux/Ubuntu

0

usually a tar file can also be compressed using either the gZip or bZip2 compressor. We’ll duvet both. 1. in case your File Extension is .tar.gz (or .tgz) if your tar file is compressed the usage of a gZip compressor, use this command: 1 tar xvzf file.tar.gz The options are beautiful simple for this: x: This tells tar to extract the files. v: this feature will listing the entire recordsdata one by one in the archive. The “v” stands for “verbose.” z: The z possibility is very important and tells the tar command to uncompress the file (gzip). f: This options tells tar that you will supply it a file title to work with. 2. if your File Extension is .tar.bz2 (or .tbz) if your tar file is compressed the usage of a bZip2 compressor, use this command: 1 tar xvjf file.tar.tbz that is with reference to the same as the gzip decompression. the main distinction is that the z option has been changed by using the j option. if you remember, the z choice used to be the uncompress (namely gzip) flag, so it is sensible that this might be switched out. j: this may increasingly decompress a bzip2 file. 3. thoughts-Blowingly-simple Extraction (The dtrx perform) There are best a handful of folks that if truth be told keep in mind that all the choices for the tar command. fortuitously, Linux other people are nice at making things easier. Standing for “Do the suitable Extraction,” dtrx works as you may hope. The command must be simple for each gZip and bZip2 information: 1 dtrx file.tar.gz 1 dtrx file.tar.bz2 installing dtrx to put in dtrx, simply use apt-get: 1 sudo apt-get install dtrx photo Sources: autogeekonline.internet

Share.

Leave A Reply