4 examples for xz

{{ score }}
  # Extract a compressed archive
xz -d < linux-3.9.2.tar.xz | tar xvf -
        
{{ score }}
  # 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
        
{{ score }}
  # 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
        
{{ score }}
  # Create a compressed archive
tar cf - linux-3.9.2 | xz > linux-3.9.2.tar.xz