Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Open xz file from the command line in Windows 10

Tags:

cmd

windows-10

xz

My colleagues using mac or linux open xz files with this line:

xz --decompress --stdout "file.csv.xz"

On my pc, with windows 10, I get the following error:

'xz' is not recognized as an internal or external command, operable program or batch file

Is the command different on windows? Or is it a matter of installing a program and putting it in the right directory (like you need curl.exe to use rcurl for example)?

like image 658
Julien Massardier Avatar asked Mar 02 '17 01:03

Julien Massardier


People also ask

How do I open a tar xz file in Windows?

Now, compressing and decompressing Tar. xz files is a relatively easy process. However, when extracting them on Windows, you will have to download third-party decompression software like 7zip or WinZip. With the help of these software, you should be able to extract your compressed file in just minutes!

How do I run an xz file?

xz file simply right-click the file you want to extract and select “Extract”. Windows users need a tool named 7zip to extract tar. xz files. For more verbose output, use the -v option.


1 Answers

Yes, you need to install xz on the computer in order to run it. http://tukaani.org/xz/

7-Zip has supported .xz files for some time and you might be able to use that if it is already installed. http://www.7-zip.org/

like image 189
lit Avatar answered Oct 16 '22 10:10

lit