tar_usage
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tar_usage [2020/12/04 16:00] – raju | tar_usage [2023/01/26 21:24] (current) – [sample commands] raju | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ==== count number of lines in a txz file ==== | ||
+ | < | ||
+ | xz -cd foo.txz | wc -l | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | for i in *.txz; do echo $i; xz -cd $i | wc; done | ||
+ | </ | ||
+ | |||
+ | ==== file extensions ==== | ||
+ | * tar gzip compressed - .tgz | ||
+ | * tar bzip2 compressed - .tar.bz2, .tar.bz, .tbz | ||
+ | * 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 ==== | ||
* [[Relative file names in a tar archive]] | * [[Relative file names in a tar archive]] |
tar_usage.1607097649.txt.gz · Last modified: 2020/12/04 16:00 by raju