4 examples for xz
# compress a file "foo" into "foo.xz" xz foo # compress a directory "foo" into "bar.tar.xz" tar cf - foo/ | xz -c - > bar.tar.xz
# Create an xz-compressed tar directory (v for verbose output) tar cJvf my_file # Unzip an xz-compressed tar directory tar xJvf my_file.tar.xz