Question: how to xz a file?
Answer: The simplest example of compressing a file with xz is as follows, using the -z or --compress option. To decompress a file, use the -d option or unxz utility as shown. If an operation fails, for instance a compressed file with same name exists, you can use the -f option to force the process.