How to extract one single file from a tar.xz file?
12 Answers
This should work:
tar -xf file.tar.xz "/file/to/extract.png"See here for some more syntax.
1There are many ways to extract specific or selected files from a tar archive file, but the most used way in Linux using tar options as shown:
tar -tf filename.tar.gz filenameFor more examples about tar command can be found at:
1