tar_usage
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tar_usage [2023/01/26 21:21] – [count number of lines in a txz file] raju | tar_usage [2023/01/26 21:24] (current) – [sample commands] raju | ||
---|---|---|---|
Line 12: | Line 12: | ||
* tar bzip2 compressed - .tar.bz2, .tar.bz, .tbz | * tar bzip2 compressed - .tar.bz2, .tar.bz, .tbz | ||
* tar xz compressed - .txz | * tar xz compressed - .txz | ||
+ | |||
+ | ==== sample commands ==== | ||
+ | < | ||
+ | tar cJvf foo.txz foo | ||
+ | </ | ||
+ | |||
+ | ==== convert tgz to txz ==== | ||
+ | < | ||
+ | cat foo.tgz | gzip -cd | xz > foo.txz | ||
+ | </ | ||
+ | |||
+ | To do the other way around | ||
+ | < | ||
+ | cat foo.txz | xz -cd | gzip > foo.tgz | ||
+ | </ | ||
+ | |||
+ | Ref:- http:// | ||
+ | |||
+ | tags | change compression algorithm of a tar archive | ||
==== internal links ==== | ==== internal links ==== |
tar_usage.1674768095.txt.gz · Last modified: 2023/01/26 21:21 by raju