How to extract .tar.xz file in linux (Fedora/Centos/RHEL)

How to extract .tar.xz file in linux (Fedora/Centos/RHEL)

We can extract or unzip the .tar.xz file in linux using tar command.

Syntax:

tar -xf filename.tar.xz

GNU 'tar' is used to save many files together into a single tape or disk archive, and also can restore individual files from the archive.

tar [OPTION...] [FILE]...

-x, --extract, --get: extract files from an archive

-f, --file=ARCHIVE: use archive file or device ARCHIVE

Let's see the example,

$ tar -xz test.tar.xz

Output:

$ ls
test.tar.xz  test



Python installation

Privacy Policy  |  Copyrightcopyright symbol2020 - All Rights Reserved.  |  Contact us   |  Report website issues in Github   |  Facebook page   |  Google+ page

Email Facebook Google LinkedIn Twitter
^