User Tools

Site Tools


tar_usage

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tar_usage [2023/01/26 21:20] rajutar_usage [2023/01/26 21:24] (current) – [sample commands] raju
Line 8: Line 8:
 </code> </code>
  
 +==== file extensions ====
 +  * tar gzip compressed - .tgz
 +  * tar bzip2 compressed - .tar.bz2, .tar.bz, .tbz
 +  * tar xz compressed - .txz
 +
 +==== sample commands ====
 +<code>
 +tar cJvf foo.txz foo
 +</code>
 +
 +==== convert tgz to txz ====
 +<code>
 +cat foo.tgz | gzip -cd | xz > foo.txz
 +</code>
 +
 +To do the other way around
 +<code>
 +cat foo.txz | xz -cd | gzip > foo.tgz
 +</code>
 +
 +Ref:- http://lowfatdaemon.blogspot.com/2012/01/how-to-repackage-txz-to-tgz-slackware.html
 +
 +tags | change compression algorithm of a tar archive
  
 ==== internal links ==== ==== internal links ====
tar_usage.1674768029.txt.gz · Last modified: 2023/01/26 21:20 by raju