Re: Extracting indiviual files or directories from XYZ.tar.xz - Possible?
On 2025-08-09 01:30:52 -0700, Michael Paoli wrote:
> < tar.xz | xz -d | tar tf -
With tar utilities that support xz (like GNU tar), not using "xz -d"
could be more efficient as "xz -d" will uncompress the whole file
while this may not be necessary:
tar tf file.tar.xz
is sufficient. This may allow one to skip xz blocks if the archive
contains big files. That said, I don't know whether GNU tar has
such an optimization.
--
Vincent Lefèvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Pascaline project (LIP, ENS-Lyon)
Reply to: