xz is practically a superset of lzma, unlzma, and lzcat as found from LZMA Utils 4.32.x. In most cases, it is possible to replace LZMA Utils with XZ Utils without breaking existing scripts. There are some incompatibilities though, which may sometimes cause problems.

関連コマンド

コマンド 概要
unxz is equivalent to xz --decompress.
xzcat is equivalent to xz --decompress --stdout.
xzcmp
xzdiff
invoke cmp(1) or diff(1) on files compressed with xz(1), lzma(1), gzip(1), bzip2(1), or lzop(1). All options specified are passed directly to cmp(1) or diff(1).
xzgrep
xzegrep
xzfgrep
invokes grep(1) on files which may be either uncompressed or compressed with xz(1), lzma(1), gzip(1), bzip2(1), lzop(1), or zstd(1). All options specified are passed directly to grep(1).If xzgrep is invoked as xzegrep or xzfgrep then egrep(1) or fgrep(1) is used instead of grep(1).
xzless
lzless
filter that displays text from compressed files to a terminal. It works on files compressed with xz(1) or lzma(1). If no files are given, xzless reads from standard input. xzless uses less(1) to present its output.
xzmore
lzmore
filter which allows examination of xz(1) or lzma(1) compressed text files one screenful at a time on a soft-copy terminal.
lzmainfo shows information stored in the .lzma file header. It reads the first 13 bytes from the specified file, decodes the header, and prints it to standard output in human readable format.
lzgrep
lzegrep
lzfgrep
The same applies to names lzgrep, lzegrep, and lzfgrep, which are provided for backward compatibility with LZMA Utils.
lzma is equivalent to xz --format=lzma.
unlzma is equivalent to xz --format=lzma --decompress.
lzcat is equivalent to xz --format=lzma --decompress --stdout.
lzcmp
lzdiff
are provided for backward compatibility with LZMA Utils.